Skip to content

Commit

Permalink
Merge pull request #15 from sanmai/pr/2020-08/psalm
Browse files Browse the repository at this point in the history
Fix Psalm warning
  • Loading branch information
maks-rafalko authored Aug 7, 2020
2 parents 727a884 + 4c756e8 commit 159ae3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"infection/infection": "^0.15.0",
"phan/phan": "^2.4",
"phan/phan": "^2.4 || ^3",
"php-coveralls/php-coveralls": "^2.2",
"phpstan/phpstan": "^0.12.8",
"phpunit/phpunit": "^8.5",
Expand Down
3 changes: 3 additions & 0 deletions src/IncludeInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ public function stream_cast()
return $this->fp;
}

/**
* @psalm-suppress InvalidPropertyAssignmentValue
*/
public function stream_close()
{
assert(is_resource($this->fp));
Expand Down

0 comments on commit 159ae3d

Please sign in to comment.