Updated Rector to commit 4005683997ceadfff65d19328e4eb2d0b5b3bbae

4005683997 [Scoper] Include src/core_namespace_aliases.php on last after project autoload (#5420)
This commit is contained in:
Tomas Votruba 2024-01-02 13:36:58 +00:00
parent 615009f789
commit c888002735
3 changed files with 6 additions and 2 deletions

View File

@ -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();

View File

@ -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
*/

View File

@ -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
{