Skip to content

Commit

Permalink
Typehint JobNotFoundException::__construct($code)
Browse files Browse the repository at this point in the history
PhpStan: Method Webgriffe\Esb\Exception\ElasticSearch\JobNotFoundException::__construct() has parameter $code with no typehint specified.
  • Loading branch information
youwe-petervanderwal committed Feb 23, 2021
1 parent 56126f1 commit 0e93f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/ElasticSearch/JobNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class JobNotFoundException extends \RuntimeException
{
public function __construct(string $jobUuid, $code = 0, Throwable $previous = null)
public function __construct(string $jobUuid, int $code = 0, Throwable $previous = null)
{
parent::__construct(sprintf('Job with UUID "%s" has not been found.', $jobUuid), $code, $previous);
}
Expand Down

0 comments on commit 0e93f59

Please sign in to comment.