You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[phpunit] WithConsecutiveRector should be removed from PHPUnitSetList::PHPUNIT_90 #9366
The project is based on Symfony 6.4 + symfony/phpunit-bridge and installs PHPUnit through bin/phpunit helper script. This is probably the reason why rector assumes PHPUnit 10 is available.
With reflection check, the version doesn't really matter. The first existing method should be used.
Btw, PHPUnit bridge is pretty messy package, that should be used only in symfony/symfony monorepo to allow running many PHPUnit versions. Removed anywhere else. Unfortunatelly, legacy Symfony skeletons spread it in many projects by default with no gain.
changed the title [-]WithConsecutiveRector should be removed from PHPUnitSetList::PHPUNIT_90[/-][+][phpunit] WithConsecutiveRector should be removed from PHPUnitSetList::PHPUNIT_90[/+]on Sep 10, 2025
Activity
TomasVotruba commentedon Sep 7, 2025
This method was deprecated in PHPUnit 9 and removed in 10, so set is correct.
The rule should check for correct new method name instead and apply existing one based on real project code.
dczech commentedon Sep 7, 2025
The project is based on Symfony 6.4 + symfony/phpunit-bridge and installs PHPUnit through bin/phpunit helper script. This is probably the reason why rector assumes PHPUnit 10 is available.
TomasVotruba commentedon Sep 7, 2025
With reflection check, the version doesn't really matter. The first existing method should be used.
Btw, PHPUnit bridge is pretty messy package, that should be used only in
symfony/symfonymonorepo to allow running many PHPUnit versions. Removed anywhere else. Unfortunatelly, legacy Symfony skeletons spread it in many projects by default with no gain.[-]WithConsecutiveRector should be removed from PHPUnitSetList::PHPUNIT_90[/-][+][phpunit] WithConsecutiveRector should be removed from PHPUnitSetList::PHPUNIT_90[/+]TomasVotruba commentedon Sep 10, 2025
Resolved in rectorphp/rector-phpunit#546
github-actions commentedon Feb 8, 2026
This issue has been automatically locked because it has been closed for 150 days. Please open a new issue if you have a similar problem.