From ed9fe25f71deb498f5824269a54629d90fe39a9b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 30 Jul 2026 11:37:51 +0200 Subject: [PATCH 1/3] bump dev deps --- composer.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 5447cd70a75..c3eb9cc604b 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "rector/rector-downgrade-php": "dev-main", "rector/rector-phpunit": "dev-main", "rector/rector-symfony": "dev-main", - "sebastian/diff": "^6.0|^7.0", + "sebastian/diff": "^8.0|^9.0", "symfony/console": "^6.4.24", "symfony/filesystem": "^7.4", "symfony/finder": "^6.4", @@ -48,9 +48,8 @@ "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-webmozart-assert": "^2.0", - "phpunit/phpunit": "^12.5.6", - "rector/jack": "^0.5", - "rector/release-notes-generator": "^0.5.1", + "phpunit/phpunit": "^13.0", + "rector/jack": "^1.0", "rector/swiss-knife": "^2.4.1", "shipmonk/composer-dependency-analyser": "^1.8", "symplify/easy-coding-standard": "^13.2.13", From a6ee8b48ca5ecc17204cc920a2aa747aaaeac6b0 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 30 Jul 2026 11:49:43 +0200 Subject: [PATCH 2/3] fixup! bump dev deps --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c3eb9cc604b..1d241ad5e50 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "rector/rector-downgrade-php": "dev-main", "rector/rector-phpunit": "dev-main", "rector/rector-symfony": "dev-main", - "sebastian/diff": "^8.0|^9.0", + "sebastian/diff": "^9.0", "symfony/console": "^6.4.24", "symfony/filesystem": "^7.4", "symfony/finder": "^6.4", From 63f651c4acb56b28f767c528534e9c73bbbb0d21 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 30 Jul 2026 09:51:09 +0000 Subject: [PATCH 3/3] [ci-review] Rector Rectify --- tests/Configuration/OnlyRuleResolverTest.php | 6 +++--- tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Configuration/OnlyRuleResolverTest.php b/tests/Configuration/OnlyRuleResolverTest.php index e835f8e0e3d..eae493ddd63 100644 --- a/tests/Configuration/OnlyRuleResolverTest.php +++ b/tests/Configuration/OnlyRuleResolverTest.php @@ -64,7 +64,7 @@ public function testResolveOkSingleQuotes(): void public function testResolveMissingBackslash(): void { - $this->expectExceptionMessage( + $this->expectExceptionMessageIsOrContains( 'Rule "RectorDeadCodeRectorAssignRemoveDoubleAssignRector" was not found.' . PHP_EOL . 'The rule has no namespace. Make sure to escape the backslashes, and add quotes around the rule name: --only="My\\Rector\\Rule"' ); @@ -75,7 +75,7 @@ public function testResolveMissingBackslash(): void public function testResolveNotFound(): void { - $this->expectExceptionMessage( + $this->expectExceptionMessageIsOrContains( 'Rule "This\Rule\Does\Not\Exist" was not found.' . PHP_EOL . 'Make sure it is registered in your config or in one of the sets' ); @@ -102,7 +102,7 @@ public function testResolveShortOkTwoLevels(): void public function testResolveShortAmbiguous(): void { - $this->expectExceptionMessage( + $this->expectExceptionMessageIsOrContains( 'Short rule name "RemoveDoubleAssignRector" is ambiguous. Specify the full rule name:' . PHP_EOL . '- Rector\\DeadCode\\Rector\\Assign\\RemoveDoubleAssignRector' . PHP_EOL . '- Rector\\Tests\\Configuration\\Source\\RemoveDoubleAssignRector' diff --git a/tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php b/tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php index 83d4b559944..10a16295b27 100644 --- a/tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php +++ b/tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php @@ -14,7 +14,7 @@ final class ReturnEmptyNodesTest extends AbstractRectorTestCase #[DataProvider('provideData')] public function test(string $filePath): void { - $this->expectExceptionMessage('Array of nodes cannot be empty'); + $this->expectExceptionMessageIsOrContains('Array of nodes cannot be empty'); $this->expectException(ShouldNotHappenException::class); $this->doTestFile($filePath);