diff --git a/bin/rector.php b/bin/rector.php index 1a6023d7873..d6b29ee4f1f 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -105,6 +105,7 @@ $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 8f22b5d03e0..9a798aef3f7 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 = 'fa1a96b7eaa5f178c5701c94999a9aa130cf6255'; + public const PACKAGE_VERSION = '4005683997ceadfff65d19328e4eb2d0b5b3bbae'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-02 12:51:27'; + public const RELEASE_DATE = '2024-01-02 13:34:35'; /** * @var int */ diff --git a/src/Testing/PHPUnit/AbstractRectorTestCase.php b/src/Testing/PHPUnit/AbstractRectorTestCase.php index 0d4d6efbc32..667c7ecec92 100644 --- a/src/Testing/PHPUnit/AbstractRectorTestCase.php +++ b/src/Testing/PHPUnit/AbstractRectorTestCase.php @@ -175,6 +175,9 @@ 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 {