Skip to content

Commit

Permalink
Updated Rector to commit 03da987
Browse files Browse the repository at this point in the history
rectorphp/rector-src@03da987 Try fix stub ReflectionUnionType not found in CI php 7.2 (#2373)
  • Loading branch information
TomasVotruba committed May 27, 2022
1 parent 6693d5c commit 2916f08
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '45eef47f27df7b6ed3422c19db03e0e74fe0417b';
public const PACKAGE_VERSION = '03da98750aa42e8dc5381a0a777d0bea8bfc1016';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-27 15:30:05';
public const RELEASE_DATE = '2022-05-27 14:48:27';
/**
* @var string
*/
Expand Down
4 changes: 2 additions & 2 deletions stubs-rector/Internal/EnumInterfaces.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
if (! interface_exists('UnitEnum', false)) {
/**
* @since 8.1
*/
Expand All @@ -13,7 +13,7 @@ public static function cases(): array;
}
}

if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum', false)) {
if (! interface_exists('BackedEnum', false)) {
/**
* @since 8.1
*/
Expand Down
6 changes: 3 additions & 3 deletions stubs-rector/Internal/NativeClasses.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
if (! class_exists('ReflectionUnionType', false)) {
class ReflectionUnionType extends ReflectionType
{
/** @return ReflectionType[] */
Expand All @@ -11,7 +11,7 @@ public function getTypes()
}
}

if (\PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
if (! class_exists('Attribute', false)) {
#[Attribute(Attribute::TARGET_CLASS)]
class Attribute
{
Expand Down Expand Up @@ -72,7 +72,7 @@ public function __construct($flags = self::TARGET_ALL)
}
}

if (\PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
if (! class_exists('ReturnTypeWillChange', false)) {
#[Attribute(Attribute::TARGET_METHOD)]
final class ReturnTypeWillChange
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50::getLoader();
return ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50
class ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e
{
private static $loader;

Expand All @@ -22,19 +22,19 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitec8a7af6b45877f163da24591918fc50::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$includeFiles = \Composer\Autoload\ComposerStaticInitec8a7af6b45877f163da24591918fc50::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireec8a7af6b45877f163da24591918fc50($fileIdentifier, $file);
composerRequireaebc3aaa5ebb18087bdedabf1527791e($fileIdentifier, $file);
}

return $loader;
Expand All @@ -46,7 +46,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequireec8a7af6b45877f163da24591918fc50($fileIdentifier, $file)
function composerRequireaebc3aaa5ebb18087bdedabf1527791e($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitec8a7af6b45877f163da24591918fc50
class ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
Expand Down Expand Up @@ -3919,9 +3919,9 @@ class ComposerStaticInitec8a7af6b45877f163da24591918fc50
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitec8a7af6b45877f163da24591918fc50::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitec8a7af6b45877f163da24591918fc50::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitec8a7af6b45877f163da24591918fc50::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitaebc3aaa5ebb18087bdedabf1527791e::$classMap;

}, null, ClassLoader::class);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20220527\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50', false) && !interface_exists('ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50', false) && !trait_exists('ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50', false)) {
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInitec8a7af6b45877f163da24591918fc50');
if (!class_exists('ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e', false) && !interface_exists('ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e', false) && !trait_exists('ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e', false)) {
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInitaebc3aaa5ebb18087bdedabf1527791e');
}
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');
Expand Down Expand Up @@ -59,9 +59,9 @@ function print_node() {
return \RectorPrefix20220527\print_node(...func_get_args());
}
}
if (!function_exists('composerRequireec8a7af6b45877f163da24591918fc50')) {
function composerRequireec8a7af6b45877f163da24591918fc50() {
return \RectorPrefix20220527\composerRequireec8a7af6b45877f163da24591918fc50(...func_get_args());
if (!function_exists('composerRequireaebc3aaa5ebb18087bdedabf1527791e')) {
function composerRequireaebc3aaa5ebb18087bdedabf1527791e() {
return \RectorPrefix20220527\composerRequireaebc3aaa5ebb18087bdedabf1527791e(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down

0 comments on commit 2916f08

Please sign in to comment.