Repository navigation
Conversation
Instead of a tilde constraint and a pull request for every new minor version of Rector, require ^2.8.0 and rely on the nightly CI and phpstan-deprecation-rules to notice breaking changes. ssch/typo3-rector 3.17.0 does not work with Rector 2.9 yet, so Rector >=2.9.0 conflicts until it does.
The CI shows that ssch/typo3-rector 3.17.0 does not work with Rector 2.9 (sabbelasichon/typo3-rector#4957) until a fixed release is out (sabbelasichon/typo3-rector#4958).
This was referenced Nov 25, 2026
Member
Author
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Contributor
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces #137. Instead of a tilde constraint (#136) and a pull request for every new minor version of Rector, we require Rector with a caret constraint again and rely on the nightly CI and
phpstan/phpstan-deprecation-rules(#138) to notice breaking changes.Changes
composer.jsonandpackages/rector-p/composer.json:rector/rector: ^2.8.0instead of~2.8.0. The minimum stays 2.8.0, the first version in which the removed skips are deprecated (see AGENTS.md).CONTRIBUTING.md(section "Rector version") andAGENTS.md: caret constraint, the nightly run of the grumphp workflow (nocomposer.lock, so it installs the newest Rector), whatphpstan-deprecation-rulescan and can not see, and to fix a breaking Rector release here or report it to the package that has to fix it.Expected CI failure
There is no
conflictwith Rector 2.9, so CI installs Rector 2.9 and fails in the root jobs for two reasons:src/RectorSettings.php:63accessesRector\Set\ValueObject\LevelSetList, which Rector 2.9 deprecates ("Use withPhpSets() or withPhpLevel() instead").phpstan-deprecation-rulesreports it before Rector removes the class. Rector 2.9 also warns at runtime about the per-version PHP set files (config/set/phpXY.php,config/set/level/up-to-phpXY.php); the replacementSetList::PHP_VERSION_BASED_SETexists since Rector 2.8.0. Not fixed yet.ssch/typo3-rector3.17.0 (still the latest release) usesRector\Transform\ValueObject\MethodCallToStaticCall, which Rector 2.9.0 removed ([Transform] Remove 7 deprecated rules rectorphp/rector-src#8958).Rector\Transform\ValueObject\MethodCallToStaticCallnot found sabbelasichon/typo3-rector#4957The packages are green.
Notes
composer update, at the same time.phpstan-deprecation-rulesdoes not see constants read withconstant()(likeSetList::PHP_*inRectorSettings::sets()), and it does not check other packages such asssch/typo3-rector.