Update rector/rector requirement from ^0.18 to ^0.18 || ^1.0
Updates the requirements on rector/rector to permit the latest version.
Release notes
Sourced from rector/rector's releases.
Released Rector 1.0.0 🎉🎉🎉
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 :tada:
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.phpconfig 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:
use Rector\Config\RectorConfig;return RectorConfig::configure() ->withPreparedSets(codeQuality: true, codingStyle: true) ->withAttributesSets(symfony: true, doctrine: true) ->withPaths([ DIR . '/src', DIR . '/tests', ]) ->withRootFiles();
PHP Sets Automated
To keep up to date with you PHP, now you can use single method:
use Rector\Config\RectorConfig;return RectorConfig::configure() ->withPhpSets(); </tr></table>
... (truncated)
Commits
362258aRector 1.0.064d401bUpdated Rector to commit 9a44c19598a21aff4b6b38f9a0db3b5ca30337c6428336cUpdated Rector to commit 09398c3d4f07bb6ad664a55b87cab955278a467ed00ebb8Updated Rector to commit 56c250771518c2aa2e17bc64c9986c2dbe9b6fd8de3b3bbRector 0.19.8a529437Updated Rector to commit c44e1e57dece206f94cd5896000750172ead02728be4b97Updated Rector to commit c0079e3824d81ca2bd1a4b430c06acec4a5ef7317810dc2Updated Rector to commit 487f162d53fe42f6d76557ca6cd49d93ceb911e8ad50de3Updated Rector to commit 70f10cb70dddf660c3b26f0e93e83248e0a07adb53f16f4Rector 0.19.7- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)