From 1832a0b71e437ce04e9d360fbe0e020b376f3002 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Fri, 2 Oct 2026 10:46:14 +0200 Subject: [PATCH 1/2] Remove PHPUnitSetList::PHPUNIT_100 rector set It was removed in rector/rector 2.6.2. Co-Authored-By: Claude Opus 5.5 --- rector.php | 1 - templates/project/rector.php.twig | 1 - 2 files changed, 2 deletions(-) diff --git a/rector.php b/rector.php index 628b2dae3..dfa97768d 100644 --- a/rector.php +++ b/rector.php @@ -28,7 +28,6 @@ $rectorConfig->sets([ LevelSetList::UP_TO_PHP_81, - PHPUnitSetList::PHPUNIT_100, PHPUnitSetList::PHPUNIT_CODE_QUALITY, ]); diff --git a/templates/project/rector.php.twig b/templates/project/rector.php.twig index bc636f54e..ad89afd86 100644 --- a/templates/project/rector.php.twig +++ b/templates/project/rector.php.twig @@ -35,7 +35,6 @@ return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ LevelSetList::UP_TO_PHP_{{ branch.lowestPhpVersion.rectorFormat }}, - PHPUnitSetList::PHPUNIT_100, PHPUnitSetList::PHPUNIT_CODE_QUALITY, ]); From f4fe76049d2fce0a4ebc15451e99e4a2b0d50248 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Fri, 2 Oct 2026 10:49:37 +0200 Subject: [PATCH 2/2] Fix PHPStan and Rector errors Co-Authored-By: Claude Opus 5.5 --- src/Github/Domain/Value/Hook/Config.php | 2 +- src/Github/Domain/Value/Hook/Events.php | 2 +- tests/Twig/Extension/FileSystemExtensionTest.php | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Github/Domain/Value/Hook/Config.php b/src/Github/Domain/Value/Hook/Config.php index b072a3766..429cbd75e 100644 --- a/src/Github/Domain/Value/Hook/Config.php +++ b/src/Github/Domain/Value/Hook/Config.php @@ -55,7 +55,7 @@ public function url(): Url } /** - * @param array $config + * @param array $config */ public function equals(array $config): bool { diff --git a/src/Github/Domain/Value/Hook/Events.php b/src/Github/Domain/Value/Hook/Events.php index 44fd40a27..808a9440f 100644 --- a/src/Github/Domain/Value/Hook/Events.php +++ b/src/Github/Domain/Value/Hook/Events.php @@ -46,7 +46,7 @@ public static function fromArray(array $events): self } /** - * @param array $events + * @param array $events */ public function equals(array $events): bool { diff --git a/tests/Twig/Extension/FileSystemExtensionTest.php b/tests/Twig/Extension/FileSystemExtensionTest.php index a045fcae9..d41271f60 100644 --- a/tests/Twig/Extension/FileSystemExtensionTest.php +++ b/tests/Twig/Extension/FileSystemExtensionTest.php @@ -25,8 +25,7 @@ protected function setUp(): void { parent::setUp(); - $fileSystem = $this->createMock(Filesystem::class); - $this->fileSystemExtension = new FileSystemExtension($fileSystem); + $this->fileSystemExtension = new FileSystemExtension(static::createStub(Filesystem::class)); } public function testHasDependency(): void