diff --git a/composer.json b/composer.json index dd7ef9b..9838f5c 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "amphp/phpunit-util": "^3", "phpunit/phpunit": "^9", "amphp/php-cs-fixer-config": "^2", - "psalm/phar": "^5.4" + "psalm/phar": "5.20" }, "autoload": { "psr-4": { diff --git a/psalm.xml b/psalm.xml index 8b8f1f5..124dc90 100644 --- a/psalm.xml +++ b/psalm.xml @@ -40,6 +40,12 @@ + + + + + + diff --git a/src/Internal/Socket.php b/src/Internal/Socket.php index 1f14620..aeba1ee 100755 --- a/src/Internal/Socket.php +++ b/src/Internal/Socket.php @@ -163,7 +163,7 @@ final public function ask(Question $question, float $timeout, ?Cancellation $can $invalidPacketsReceived = &$this->invalidPacketsReceived; - /** @psalm-suppress InaccessibleProperty $this->pending is an ArrayObject */ + /** @psalm-suppress InaccessibleProperty, InvalidArgument $this->pending is an ArrayObject */ $this->pending[$id] = new class($this->pending, $id, $deferred, $question, $timeout, $invalidPacketsReceived) { private readonly string $callbackId;