You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Fatal error: Uncaught _PHPStan_71572f9a1\Nette\FileNotFoundException:
File 'phar://phpstan.phar/conf/bleedingEdge.neon' is missing or is not readable. in phar:///path/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Config/Loader.php:29
The text was updated successfully, but these errors were encountered:
This option is configurable to be flexible and work around configuration that is used in PHPStan but not in Rector. Here phar paths in bleedingEdge.neon work only inside scope of PHAR. Sometimes PHPStan extensions remove static reflection, e.g. Symfony extension, and Rector cannot include it as it needs complete static reflection.
In this case, create own custom phpstan-for-rector.neon or remove vendor/phpstan/phpstan/conf/bleedingEdge.neon from phpstan.neon. I guess first option is better.
In ideal state, the phpstan-for-rector.neon should only include extensions so Rector can analyse types better.
Bug Report
Minimal PHP Code Causing Issue
$parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, getcwd() . '/phpstan.neon');
gives:
The text was updated successfully, but these errors were encountered: