chore(deps): bump rector/rector from 0.19.8 to v1 (main) #9410
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.19.8
->^1.0.1
Release Notes
rectorphp/rector (rector/rector)
v1.0.1
: Released Rector 1.0.1Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
v1.0.0
: Released Rector 1.0.0 🎉🎉🎉Compare Source
The stable Rector version is here. It was about time and we've done all planned changes by the end of 2023.
What could be better time and place to release a stable Rector than live on stage during talk 🎉
While this release brings stable API, it will be easier to stay up to date as well. The 1.x versioning behaves as expected with
composer update
(compared to special 0.x).Our main focus is on improving developers experience. This release brings new features that help with custom rules writing, adding Rector to CI and adding Rector to any legacy project in general.
Some features are partially available in previous version, but we'd like to highligh them because since 1.0 you can use them all together.
Zen Config with Autocomplete
If you run Rector for the first time, it will create a
rector.php
config with your project paths for you. In past we used various class constants references to add commonly used rule sets. This required knowledge about these classes and was often missed.We've changed this to work with single configuration class. It provides autocomplete for available sets, including attributes:
PHP Sets Automated
To keep up to date with you PHP, now you can use single method:
It learns about PHP version from your
composer.json
and will always keep sync with your required PHP version. No need to double checkrector.php
configuration anymore.Streamline Integration to Projects
We're also adding 2 experimental methods, that make Rector integration to new projects easier. Before, you could run whole type declaration or read code set, see 1000 changed files and rather close it being overwhelmed. Instead, we want to take it slow, as we do with our custom upgrades as well:
Now you can improve your code base one rule at a time. The rules are sorted from the easiest to integrate, e.g. add
void
to closure, to more complex one. That way you can improve your code base in your own pace. We're collecting feedback on rule order, so the levels will likely change.New and Improved Commands
Call the command, type the rule name and rule, its test and composer autoload is generated for you. So you can focus on the contents of
refactor()
method.The command handles generic setup for you and then guides you to register needed access.
Configuration
📅 Schedule: Branch creation - "before 5am on wednesday" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.