mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 474024f9bf
474024f9bf
[Scoper] Fix bootstrap BackedEnum code (#877)
This commit is contained in:
parent
ca094bb20d
commit
e77f1f4aac
|
@ -55,7 +55,16 @@ if (! interface_exists('BackedEnum')) {
|
|||
* @since 8.1
|
||||
*/
|
||||
interface BackedEnum extends UnitEnum {
|
||||
public static function from(int|string $value): static;
|
||||
public static function tryFrom(int|string $value): ?static;
|
||||
/**
|
||||
* @param int|string $value
|
||||
* @return $this
|
||||
*/
|
||||
public static function from($value);
|
||||
|
||||
/**
|
||||
* @param int|string $value
|
||||
* @return $this|null
|
||||
*/
|
||||
public static function tryFrom($value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'fa63510c6f5fad39068b9b257aa845b429efafa9';
|
||||
public const PACKAGE_VERSION = '474024f9bf7ba2430079f3ab8eda8eac5c26c1a5';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-09-13 22:43:14';
|
||||
public const RELEASE_DATE = '2021-09-13 16:03:36';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210913\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit7372740832701f621fc699d5446704e5::getLoader();
|
||||
return ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit7372740832701f621fc699d5446704e5
|
||||
class ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit7372740832701f621fc699d5446704e5
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7372740832701f621fc699d5446704e5', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7372740832701f621fc699d5446704e5', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit7372740832701f621fc699d5446704e5::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit7372740832701f621fc699d5446704e5
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit7372740832701f621fc699d5446704e5::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire7372740832701f621fc699d5446704e5($fileIdentifier, $file);
|
||||
composerRequire9a027123cd5835ec69b5957bb52d4ba7($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire7372740832701f621fc699d5446704e5($fileIdentifier, $file)
|
||||
function composerRequire9a027123cd5835ec69b5957bb52d4ba7($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit7372740832701f621fc699d5446704e5
|
||||
class ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -3858,9 +3858,9 @@ class ComposerStaticInit7372740832701f621fc699d5446704e5
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7372740832701f621fc699d5446704e5::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7372740832701f621fc699d5446704e5::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit7372740832701f621fc699d5446704e5::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9a027123cd5835ec69b5957bb52d4ba7::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20210913\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit7372740832701f621fc699d5446704e5', false) && !interface_exists('ComposerAutoloaderInit7372740832701f621fc699d5446704e5', false) && !trait_exists('ComposerAutoloaderInit7372740832701f621fc699d5446704e5', false)) {
|
||||
spl_autoload_call('RectorPrefix20210913\ComposerAutoloaderInit7372740832701f621fc699d5446704e5');
|
||||
if (!class_exists('ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7', false) && !interface_exists('ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7', false) && !trait_exists('ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7', false)) {
|
||||
spl_autoload_call('RectorPrefix20210913\ComposerAutoloaderInit9a027123cd5835ec69b5957bb52d4ba7');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20210913\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -3311,9 +3311,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20210913\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire7372740832701f621fc699d5446704e5')) {
|
||||
function composerRequire7372740832701f621fc699d5446704e5() {
|
||||
return \RectorPrefix20210913\composerRequire7372740832701f621fc699d5446704e5(...func_get_args());
|
||||
if (!function_exists('composerRequire9a027123cd5835ec69b5957bb52d4ba7')) {
|
||||
function composerRequire9a027123cd5835ec69b5957bb52d4ba7() {
|
||||
return \RectorPrefix20210913\composerRequire9a027123cd5835ec69b5957bb52d4ba7(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
Loading…
Reference in New Issue