mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 64f93c848d
64f93c848d
Try fix stub ReflectionUnionType not found in CI php 7.2 (take 2) (#2374)
This commit is contained in:
parent
370e072a87
commit
3179389e09
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'a9dd89b1cc91040405f09680d23167f88cf7c9ad';
|
||||
public const PACKAGE_VERSION = '64f93c848df1c6c7d8c73ef501ca320e4d9cc212';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-05-27 16:58:29';
|
||||
public const RELEASE_DATE = '2022-05-27 15:02:23';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (! interface_exists('UnitEnum', false)) {
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ if (! interface_exists('UnitEnum', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (! interface_exists('BackedEnum', false)) {
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum')) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (! class_exists('ReflectionUnionType', false)) {
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
|
||||
class ReflectionUnionType extends ReflectionType
|
||||
{
|
||||
/** @return ReflectionType[] */
|
||||
|
@ -11,7 +11,7 @@ if (! class_exists('ReflectionUnionType', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (! class_exists('Attribute', false)) {
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) {
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Attribute
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ if (! class_exists('Attribute', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (! class_exists('ReturnTypeWillChange', false)) {
|
||||
if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange')) {
|
||||
#[Attribute(Attribute::TARGET_METHOD)]
|
||||
final class ReturnTypeWillChange
|
||||
{
|
||||
|
|
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45::getLoader();
|
||||
return ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45
|
||||
class ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirefe9e21c1be4d76623ed316a0b2724d45($fileIdentifier, $file);
|
||||
composerRequire20edb4bb0f3b1e5db5162bdcb994dddb($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirefe9e21c1be4d76623ed316a0b2724d45($fileIdentifier, $file)
|
||||
function composerRequire20edb4bb0f3b1e5db5162bdcb994dddb($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45
|
||||
class ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
|
@ -3917,9 +3917,9 @@ class ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitfe9e21c1be4d76623ed316a0b2724d45::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit20edb4bb0f3b1e5db5162bdcb994dddb::$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('RectorPrefix20220527\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45', false) && !interface_exists('ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45', false) && !trait_exists('ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45', false)) {
|
||||
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInitfe9e21c1be4d76623ed316a0b2724d45');
|
||||
if (!class_exists('ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb', false) && !interface_exists('ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb', false) && !trait_exists('ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb', false)) {
|
||||
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInit20edb4bb0f3b1e5db5162bdcb994dddb');
|
||||
}
|
||||
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('RectorPrefix20220527\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220527\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirefe9e21c1be4d76623ed316a0b2724d45')) {
|
||||
function composerRequirefe9e21c1be4d76623ed316a0b2724d45() {
|
||||
return \RectorPrefix20220527\composerRequirefe9e21c1be4d76623ed316a0b2724d45(...func_get_args());
|
||||
if (!function_exists('composerRequire20edb4bb0f3b1e5db5162bdcb994dddb')) {
|
||||
function composerRequire20edb4bb0f3b1e5db5162bdcb994dddb() {
|
||||
return \RectorPrefix20220527\composerRequire20edb4bb0f3b1e5db5162bdcb994dddb(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue