Skip to content

Commit

Permalink
Update Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jan 30, 2024
1 parent ddb0da2 commit 235b3de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
</errorLevel>
</MissingClosureReturnType>

<RiskyTruthyFalsyComparison>
<errorLevel type="suppress">
<directory name="src" />
</errorLevel>
</RiskyTruthyFalsyComparison>

<UnsupportedPropertyReferenceUsage>
<errorLevel type="suppress">
<directory name="src" />
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 235b3de

Please sign in to comment.