Update dependency rector/rector to ^0.17.0 #274
Merged
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:
rector/rector
^0.16.0
->^0.17.0
Release Notes
rectorphp/rector
v0.17.0
: Released Rector 0.17Compare Source
Preparing for Rector 1.0
In this release, we focus on architecture improvements before reaching Rector 1.0. We want to lower the memory usage and make Rector run faster.
This include removing next/previous nodes - this will most likely not affect you, as Rector rules were upgraded, but if you do you use them, switch to
StmtsAwareInterface
insteadWe follow PHPStan 1.6 move from April 2022, where you can learn more: https://phpstan.org/blog/preprocessing-ast-for-custom-rules
To see how to refactor to
StmtsAwareInterface
, check these PRs:Add/remove nodes directly 👍
The next improvement focuses on explicit node adding/removal. Thanks to
StmtsAwareInterface
we can add nodes directly. This makes Rectorrefactor()
method contain all the code you need.New Features 🥳
IfIssetToCoalescingRector
(#3878)RemoveFinalFromEntityRector
(#3727), Thanks @alexndlm!SwapMethodCallArgumentsRector
(#3726), Thanks @gaydamakha!CleanupUnneededNullsafeOperatorRector
(#3767)ReturnNeverTypeRector
work with type declaration, add it to PHP 8.1 set (#3852)BoolReturnTypeFromStrictScalarReturnsRector
(#3898)Bugfixes 🐛
IssetOnPropertyObjectToPropertyExistsRector
(#3876)Removed rules 💀
We've also remove bunch of rules, that were added in early days of Rector for demo purposes. They were not used as of any set for non-reliable cases. PHPStan and coding standards replace some of those.
Configuration
📅 Schedule: Branch creation - "before 3am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.