From bfa367259dde348c059701fdd537df13b8934b47 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 17 Jan 2024 11:38:29 +0000 Subject: [PATCH] Updated Rector to commit 6d0abe7b49908c66940c7b4065cd28f0d66fbf45 https://github.com/rectorphp/rector-src/commit/6d0abe7b49908c66940c7b4065cd28f0d66fbf45 [Autoload] Remove src/core_namespace_aliases.php (#5476) --- bin/rector.php | 1 - src/Application/VersionResolver.php | 4 +- .../PHPUnit/AbstractRectorTestCase.php | 3 - src/core_namespace_aliases.php | 144 ------------------ 4 files changed, 2 insertions(+), 150 deletions(-) delete mode 100644 src/core_namespace_aliases.php diff --git a/bin/rector.php b/bin/rector.php index d6b29ee4f1f..1a6023d7873 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -105,7 +105,6 @@ $autoloadIncluder->loadIfExistsAndNotLoadedYet(__DIR__ . '/../vendor/scoper-auto $autoloadIncluder->autoloadProjectAutoloaderFile(); $autoloadIncluder->autoloadRectorInstalledAsGlobalDependency(); $autoloadIncluder->autoloadFromCommandLine(); -$autoloadIncluder->loadIfExistsAndNotLoadedYet(__DIR__ . '/../src/core_namespace_aliases.php'); $rectorConfigsResolver = new RectorConfigsResolver(); try { $bootstrapConfigs = $rectorConfigsResolver->provide(); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index f4ef61e4fd9..f5b852c44cd 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 = 'fb6241fb6725b19f348fd05bc3430828c07196eb'; + public const PACKAGE_VERSION = '6d0abe7b49908c66940c7b4065cd28f0d66fbf45'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-17 11:24:27'; + public const RELEASE_DATE = '2024-01-17 18:36:23'; /** * @var int */ diff --git a/src/Testing/PHPUnit/AbstractRectorTestCase.php b/src/Testing/PHPUnit/AbstractRectorTestCase.php index 4e7ae31c84f..a3a042dd949 100644 --- a/src/Testing/PHPUnit/AbstractRectorTestCase.php +++ b/src/Testing/PHPUnit/AbstractRectorTestCase.php @@ -168,9 +168,6 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractLa if (\file_exists(__DIR__ . '/../../../vendor/scoper-autoload.php')) { require_once __DIR__ . '/../../../vendor/scoper-autoload.php'; } - if (\file_exists(__DIR__ . '/../../core_namespace_aliases.php')) { - require_once __DIR__ . '/../../core_namespace_aliases.php'; - } } private function doTestFileMatchesExpectedContent(string $originalFilePath, string $expectedFileContents, string $fixtureFilePath) : void { diff --git a/src/core_namespace_aliases.php b/src/core_namespace_aliases.php deleted file mode 100644 index c2b4679fe0b..00000000000 --- a/src/core_namespace_aliases.php +++ /dev/null @@ -1,144 +0,0 @@ -