Skip to content

Commit

Permalink
Update Psalm and suppress false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 27, 2023
1 parent 42c53f0 commit 241ad1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions src/Worker/Internal/ContextWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 241ad1b

Please sign in to comment.