From 0e93f59bfd035ba614af4518c97f198ff7a839c1 Mon Sep 17 00:00:00 2001 From: Peter van der Wal Date: Tue, 23 Feb 2021 11:41:12 +0100 Subject: [PATCH] Typehint JobNotFoundException::__construct($code) PhpStan: Method Webgriffe\Esb\Exception\ElasticSearch\JobNotFoundException::__construct() has parameter $code with no typehint specified. --- src/Exception/ElasticSearch/JobNotFoundException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/ElasticSearch/JobNotFoundException.php b/src/Exception/ElasticSearch/JobNotFoundException.php index f1f16ff..7566146 100644 --- a/src/Exception/ElasticSearch/JobNotFoundException.php +++ b/src/Exception/ElasticSearch/JobNotFoundException.php @@ -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); }