Skip to content
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

Deprecate Symfony level sets #572

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Deprecate Symfony level sets #572

merged 2 commits into from
Jan 17, 2024

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jan 17, 2024

It's not the best practice to use UP_TO_* sets in rector.php longer than is their single-run. They run dozens of rules with very complex logic, as it take to get from Symfony 2 to 7. It's like running a Tesla control and checking all elements available since the first horse ride :)

See section 3:
https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them

It's best practice - and we use it this way since the first Symfony rule set - to run those just once and remove .


Instead use only the latest major Symfony sets, to keep up to date and get fast and reliable Rector run 👍

Thank you


@TomasVotruba TomasVotruba changed the title tv deprecate levels Deprecate Symfony level sets Jan 17, 2024
@TomasVotruba TomasVotruba merged commit 66093cf into main Jan 17, 2024
5 checks passed
@TomasVotruba TomasVotruba deleted the tv-deprecate-levels branch January 17, 2024 14:53
@TomasVotruba
Copy link
Member Author

See rectorphp/rector-src#5477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERROR] Rector timeout after upgrading it to 0.19.0
1 participant