From afc11ae8ddf0f5396fcea4219a191c16e64396ac Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 3 Feb 2025 09:28:06 +0000 Subject: [PATCH] Updated Rector to commit 4f54239565b838f5fcfb8bc4a3fef6e883080dc7 https://github.com/rectorphp/rector-src/commit/4f54239565b838f5fcfb8bc4a3fef6e883080dc7 [DX] Move isWindows() method from AbstractRectorTestCase to AbstractLazyTestCase (#6715) --- src/Application/VersionResolver.php | 4 ++-- src/Testing/PHPUnit/AbstractLazyTestCase.php | 4 ++++ src/Testing/PHPUnit/AbstractRectorTestCase.php | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e764b9b9737..1d8d11828c7 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 = 'fe3b78a458546d92abbb12feb217ec1d9f9a0454'; + public const PACKAGE_VERSION = '4f54239565b838f5fcfb8bc4a3fef6e883080dc7'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-02-03 10:44:55'; + public const RELEASE_DATE = '2025-02-03 10:25:38'; /** * @var int */ diff --git a/src/Testing/PHPUnit/AbstractLazyTestCase.php b/src/Testing/PHPUnit/AbstractLazyTestCase.php index f2465accc72..20ac2eb44bf 100644 --- a/src/Testing/PHPUnit/AbstractLazyTestCase.php +++ b/src/Testing/PHPUnit/AbstractLazyTestCase.php @@ -38,4 +38,8 @@ abstract class AbstractLazyTestCase extends TestCase self::$rectorConfig->boot(); return self::$rectorConfig; } + protected function isWindows() : bool + { + return \strncasecmp(\PHP_OS, 'WIN', 3) === 0; + } } diff --git a/src/Testing/PHPUnit/AbstractRectorTestCase.php b/src/Testing/PHPUnit/AbstractRectorTestCase.php index c3c0954ea4a..cc127180c46 100644 --- a/src/Testing/PHPUnit/AbstractRectorTestCase.php +++ b/src/Testing/PHPUnit/AbstractRectorTestCase.php @@ -102,10 +102,6 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractLa { return FixtureFileFinder::yieldDirectory($directory, $suffix); } - protected function isWindows() : bool - { - return \strncasecmp(\PHP_OS, 'WIN', 3) === 0; - } protected function doTestFile(string $fixtureFilePath) : void { // prepare input file contents and expected file output contents