Closed staabm closed 1 year ago
Hi, this might be related to old version of cached custom PHPStan autoloader. Unless we require too old PHPStan version that is missed it :)
The linked Rector version uses PHPStan 1.10.14 - https://github.com/rectorphp/rector/blob/main/composer.json#L11
I check it contains the file you're linking: https://github.com/phpstan/phpstan-src/blob/1.10.14/src/Node/Expr/OriginalPropertyTypeExpr.php
We're unable to debug this here as it's probably related to convention of how opcache works withing phar and composer (no idea, I don't use it). If you find a way to fix it, please send it :+1:
Bug Report
Minimal PHP Code Causing Issue
As soon as I enable opcache cli rector fails and errors.
As soon as I comment
opcache.enable_cli=1
everything works as expectedExpected Behaviour
no errors