Closed gilbertsoft closed 2 years ago
phpstan-strict-rules require PHPStan 1.6.0. I think you somehow mixed up and you’re running with different PHPStan version from another location.
It’s quite obvious from the path: /var/www/html/tools/phpstan/vendor/rector/rector/vendor/phpstan/phpstan
Yes, looks you're right, maybe rector changed their packaging or my setup was wrong since ever. Will separate rector now into another namespace which should solve the issue then.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Since version 1.2.0 I'm getting the following exception when running rector:
Fatal error: Uncaught _PHPStan_c0c409264\Nette\Schema\ValidationException: Unexpected item 'parameters › checkDynamicProperties'. in phar:///var/www/html/tools/phpstan/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/schema/src/Schema/Processor.php:75
I guess it's related to the commit https://github.com/phpstan/phpstan-strict-rules/commit/afbe1e3235c51ee3f10ba4c8b32449099016ea02.
Packages installed:
Downgrading phpstan/phpstan-strict-rules to 1.1.0 solves the issue.
Stack trace: