From dcd788c4dd99b54685ac8103beb1671ca854be5c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 23 Feb 2024 13:06:33 +0000 Subject: [PATCH] Updated Rector to commit 2d1f468bc6e41bc84dc273c8ac94033b60761a76 https://github.com/rectorphp/rector-src/commit/2d1f468bc6e41bc84dc273c8ac94033b60761a76 [Privatization] Skip with suffix "TestCase" on FinalizeTestCaseClassRector (#5660) --- .../Rector/Class_/FinalizeTestCaseClassRector.php | 3 +++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php b/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php index 67f797469d3..8947b462228 100644 --- a/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php +++ b/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php @@ -69,6 +69,9 @@ CODE_SAMPLE if (!\is_string($className)) { return null; } + if (\substr_compare($className, 'TestCase', -\strlen('TestCase')) === 0) { + return null; + } if (!$this->reflectionProvider->hasClass($className)) { return null; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 20c6c154d2d..e01f2f43442 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'd754bec5f11ce2d37928901c6998e1cc62e6f20d'; + public const PACKAGE_VERSION = '2d1f468bc6e41bc84dc273c8ac94033b60761a76'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-23 17:00:56'; + public const RELEASE_DATE = '2024-02-23 20:04:16'; /** * @var int */