mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit ca23ae894e833861e83533ed9f89fc7b3bf37fee
ca23ae894e
[Autoloading] Allow to define bootstrapFiles([__DIR__ . '/some.phar']) on BootstrapFilesIncluder (#5518)
This commit is contained in:
parent
0d3dcc3842
commit
bc9920ff03
@ -19,12 +19,12 @@ final class VersionResolver
|
|||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '0.19.4';
|
public const PACKAGE_VERSION = 'ca23ae894e833861e83533ed9f89fc7b3bf37fee';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-01-29 22:07:54';
|
public const RELEASE_DATE = '2024-01-30 00:31:13';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
declare (strict_types=1);
|
declare (strict_types=1);
|
||||||
namespace Rector\Autoloading;
|
namespace Rector\Autoloading;
|
||||||
|
|
||||||
|
use Phar;
|
||||||
use FilesystemIterator;
|
use FilesystemIterator;
|
||||||
use Rector\Configuration\Option;
|
use Rector\Configuration\Option;
|
||||||
use Rector\Configuration\Parameter\SimpleParameterProvider;
|
use Rector\Configuration\Parameter\SimpleParameterProvider;
|
||||||
@ -29,6 +30,11 @@ final class BootstrapFilesIncluder
|
|||||||
if (!\is_file($bootstrapFile)) {
|
if (!\is_file($bootstrapFile)) {
|
||||||
throw new ShouldNotHappenException(\sprintf('Bootstrap file "%s" does not exist.', $bootstrapFile));
|
throw new ShouldNotHappenException(\sprintf('Bootstrap file "%s" does not exist.', $bootstrapFile));
|
||||||
}
|
}
|
||||||
|
// load phar file
|
||||||
|
if (\substr_compare($bootstrapFile, '.phar', -\strlen('.phar')) === 0) {
|
||||||
|
Phar::loadPhar($bootstrapFile);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
require $bootstrapFile;
|
require $bootstrapFile;
|
||||||
}
|
}
|
||||||
$this->requireRectorStubs();
|
$this->requireRectorStubs();
|
||||||
|
2
vendor/scoper-autoload.php
vendored
2
vendor/scoper-autoload.php
vendored
@ -14,7 +14,7 @@ $loader = (static function () {
|
|||||||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||||
$existingComposerAutoloadFiles,
|
$existingComposerAutoloadFiles,
|
||||||
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
|
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user