-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Downgrade became buggy between 0.12.5 and 0.12.8 #6878
Comments
The The responsible Rector rule: rectorphp/rector-src#1407 The Responsible Rector rule: rectorphp/rector-src#1406 |
Can I exclude these rules while still using |
@ondrejmirtes you can skip rule via $parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [
\Rector\DowngradePhp74\Rector\MethodCall\DowngradeReflectionGetTypeRector::class,
]); |
Thank you! |
BTW What I think is problematic here is that even when the code is downgraded to pre-7.4, the code might still run on newer versions of PHP where the thing isn't always |
Bug Report
This is a diff how the downgrade processed differently between Rector 0.12.5 and 0.12.8. This ISN'T a diff of non-downgraded and downgraded code. The "before" state of the diff is code downgraded by 0.12.5 and the "after" state of the diff is code downgraded by 0.12.8:
I don't understand why Rector does any of these changes, and I don't know how to debug what's responsible for them.
The configuration is:
The text was updated successfully, but these errors were encountered: