Repository navigation
[BUGFIX] Ship own value objects removed in Rector 2.9 - #4958
Merged
simonschaufi merged 2 commits intoNov 25, 2026
Merged
simonschaufi merged 2 commits into
simonschaufi merged 2 commits into
Conversation
Kanti
added a commit
to andersundsehr/grumphp-config
that referenced
this pull request
Nov 25, 2026
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).
Collaborator
|
Thank you for your contribution. Can you please fix all the remaining issues? |
Contributor
Author
|
Fixed the remaining PHPStan error in |
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.
Fixes #4957.
Rector 2.9 removed
AddPropertyTypeDeclaration,RenameStaticMethodandMethodCallToStaticCalltogether with their deprecated rules. The rules in this package stay, but their configuration objects came from Rector, so 24 of 614 tests fail on 2.9.2.This copies the three value objects to
src/<Domain>/ValueObject/(same place and namespace pattern asAddPropertyTypeWithDefaultValueDeclaration) and repoints theusestatements in four rules, five set configs and six test configs. The copies are verbatim from Rector 2.8.5, including the validation (MethodCallToStaticCallchecks method names withRectorAssert::className, as the original did).The three new files are the only new code. The rest is a one-line import change per file.
Users who configure these rules in their own
rector.phphave to switch the import to theSsch\TYPO3Rector\...\ValueObjectclass.Verified on PHP 8.5 with Rector 2.9.2 and 2.8.3 (the lower bound of
^2.8.3): 614 tests, 45 skipped, no errors.ci:php:lint,ci:check-style,composer validate --strictandci:check-typo3-rectorpass.ci:php:stanstill reports one error inrector.php:49(LevelSetListis deprecated in 2.9), which this PR does not touch. The suite also passes on PHP 7.4.33 (614 tests, no errors, dependencies resolved for 7.4); style and PHPStan only ran on 8.5, so the CI matrix is the first run for those on 7.4.