-
Notifications
You must be signed in to change notification settings - Fork 90
PHPStan & Rector 2.0 support #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Try latest rector/rector:dev-main , it now already use phpstan 2 and php-parser 5 :) |
|
You can upgrade to php-parser 5 nodes with rector-php-parser package https://github.com/rectorphp/rector-php-parser add rector.php <?php
return RectorConfig::configure()
// ...
+ ->withSets([\Rector\PhpParser\Set\PhpParserSetList::PHP_PARSER_50]);and then, run rector: |
|
Update composer.json require and require dev: - "rector/rector": "^1.2.5"
+ "rector/rector": "dev-main as 1.2.10"and update phpstan and phpstan extension to v2: "phpstan/phpstan": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",and temporary remove the following extension "symplify/phpstan-extensions": "^11.4",
"symplify/phpstan-rules": "^12.4",then remove |
* PHPStan & Rector 2.0 support (#271) * Update rector dependency to 2.0.0-rc1 (#273) * Update rector to 2.0.0.rc2 * Simplify composer scripts * Fix downgrade scripts * Add MigrateToSimplifiedAttributeRector to Laravel 9 set (#275) * Update Duster and use latest Pint configuration (#276) * Update Duster * Remove pint.json and run Duster * Refactor into our own AbstractRector that implements DocumentedRuleInterface * Update to Rector 2.0 --------- Co-authored-by: Michael Wikberg <[email protected]> Co-authored-by: Abdul Malik Ikhsan <[email protected]> Co-authored-by: M ɑ k s <[email protected]>
Fixes #270.