From 213870876818d568b7573b1d8842426bcf0fb302 Mon Sep 17 00:00:00 2001 From: Florian Guimier Date: Wed, 15 Jul 2026 10:07:10 +0200 Subject: [PATCH 1/2] Remove rector rules deprecated by rector 2.5, allow PHPUnit 12 and 13 - Widen phpunit/phpunit from ^11 to ^11 || ^12 || ^13 (IT9PE1-29290) - Drop StaticArrowFunctionRector and StaticClosureRector from the shared ruleset: rector 2.5 deprecated them as hard errors, breaking every CI build that resolves the latest rector Co-Authored-By: Claude Fable 5 --- composer.json | 2 +- src/Rector/rules.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/composer.json b/composer.json index cf7ae0a..771d10e 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-strict-rules": "^2.0", "phpstan/phpstan-webmozart-assert": "^2.0", - "phpunit/phpunit": "^11", + "phpunit/phpunit": "^11 || ^12 || ^13", "rector/rector": "^2.2", "roave/no-floaters": "^1.13", "shipmonk/phpstan-rules": "^4.2", diff --git a/src/Rector/rules.php b/src/Rector/rules.php index 3d15fe2..e7f5671 100644 --- a/src/Rector/rules.php +++ b/src/Rector/rules.php @@ -3,8 +3,6 @@ declare(strict_types=1); use Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector; -use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector; -use Rector\CodingStyle\Rector\Closure\StaticClosureRector; use Rector\Config\RectorConfig; use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector; use Rector\PHPUnit\PHPUnit100\Rector\Class_\PublicDataProviderClassMethodRector; @@ -13,9 +11,6 @@ return static function (RectorConfig $rectorConfig): void { $rectorConfig->rules([ - // Coding style - StaticArrowFunctionRector::class, - StaticClosureRector::class, // Code Quality LogicalToBooleanRector::class, // Type Declaration From a6aa5e2fc8321d3aae1277343671dfeca8bd0b0c Mon Sep 17 00:00:00 2001 From: Florian Guimier Date: Wed, 15 Jul 2026 10:10:02 +0200 Subject: [PATCH 2/2] CI: trigger push builds on main (default branch renamed from master) Co-Authored-By: Claude Fable 5 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bed3be..12ce2d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: [ master ] + branches: [ main ] pull_request: types: [opened, synchronize, reopened]