diff --git a/composer.json b/composer.json index 44b390d..eb7fb1f 100755 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "phpunit/phpunit": "^9", "amphp/phpunit-util": "^3", "amphp/php-cs-fixer-config": "^2", - "psalm/phar": "^5.4" + "psalm/phar": "^5.18" }, "autoload": { "psr-4": { diff --git a/src/Worker/Internal/ContextWorker.php b/src/Worker/Internal/ContextWorker.php index 3928721..66dcd45 100644 --- a/src/Worker/Internal/ContextWorker.php +++ b/src/Worker/Internal/ContextWorker.php @@ -51,6 +51,7 @@ public function __construct(private readonly Context $context) { $jobQueue = &$this->jobQueue; $queues = &$this->queues; + /** @psalm-suppress UndefinedVariable $onReceive is defined here. */ $this->onReceive = $onReceive = static function ( ?\Throwable $exception, ?Internal\JobPacket $data