diff --git a/composer.json b/composer.json index a640f06..4ac4ad4 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/IncludeInterceptor.php b/src/IncludeInterceptor.php index 91955c0..cf3b6bd 100644 --- a/src/IncludeInterceptor.php +++ b/src/IncludeInterceptor.php @@ -221,6 +221,9 @@ public function stream_cast() return $this->fp; } + /** + * @psalm-suppress InvalidPropertyAssignmentValue + */ public function stream_close() { assert(is_resource($this->fp));