From 2e239be85e04865053547ec4361fe85257964e75 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 5 Aug 2026 12:43:16 +0200 Subject: [PATCH] [Sets] Drop the PHPUnit 12.0, 12.5 and 13.0 triggered sets covered by composer-based Every rule these three sets registered is already in composer-based.php, bound to the exact phpunit/phpunit version it needs: - 12.0: RemoveOverrideFinalConstructTestCaseRector (>=12.0.3), plus the mock-to-stub set and composer-based set it imports - 12.5: the three AllowMockObjects rules (>=12.5.2) - 13.0: the expectExceptionMessage() to expectExceptionMessageIsOrContains() rename (>=13.2) The bond is also more accurate than the set trigger was: a 13.0 or 13.1 project no longer gets the rename of a method that only exists from 13.2, and the same for 12.0 versus 12.0.3 and 12.5 versus 12.5.2. The set files stay reachable through the PHPUnitSetList constants. --- src/Set/SetProvider/PHPUnitSetProvider.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Set/SetProvider/PHPUnitSetProvider.php b/src/Set/SetProvider/PHPUnitSetProvider.php index 645c39b2..3135ab69 100644 --- a/src/Set/SetProvider/PHPUnitSetProvider.php +++ b/src/Set/SetProvider/PHPUnitSetProvider.php @@ -69,26 +69,6 @@ public function provide(): array '11.0', __DIR__ . '/../../../config/sets/phpunit110.php' ), - new ComposerTriggeredSet( - SetGroup::PHPUNIT, - 'phpunit/phpunit', - '12.0', - __DIR__ . '/../../../config/sets/phpunit120.php' - ), - new ComposerTriggeredSet( - SetGroup::PHPUNIT, - 'phpunit/phpunit', - '12.5', - __DIR__ . '/../../../config/sets/phpunit125.php' - ), - - new ComposerTriggeredSet( - SetGroup::PHPUNIT, - 'phpunit/phpunit', - '13.0', - __DIR__ . '/../../../config/sets/phpunit130.php' - ), - // applies to any installed PHPUnit version, the rules and configuration inside are bound // to the exact version they are available from new ComposerTriggeredSet(