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

Adding a Rector configuration #426

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Adding a Rector configuration #426

wants to merge 1 commit into from

Conversation

srtfisher
Copy link
Member

@srtfisher srtfisher commented Feb 13, 2025

Adds a Rector configuration and resolves #330.

Rector is a very powerful tool to upgrade code and also ensure consistent code. We use it on Mantle to quickly add types to the code base as well as deal with the Deprecate implicitly nullable parameter types change in PHP 8.4. We also just used it on NYP to upgrade to PHPUnit 11 from 9 without any self-written code.

Future plans: it may be wise to use https://github.com/fsylum/rector-wordpress to keep our plugins automatically up-to-date. Think of https://github.com/fsylum/rector-wordpress/tree/main/config/sets as very easy ways to upgrade a project to a new WordPress version.

Copy link
Contributor

@mogmarsh mogmarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems interesting 👍

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.

Introduce a reusable Rector Configuration
2 participants