mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
Updated Rector to commit f17c388cd85d329ab455e6962e65c45527d6687e
f17c388cd8
[Downgrade PHP 8] Register DowngradePhpTokenRector to downgrade-php80 config set (#427)
This commit is contained in:
parent
55c47b9663
commit
e3fb3c2b29
@ -7,7 +7,6 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\AttributeGroup;
|
||||
use PhpParser\Node\Expr\ArrowFunction;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Param;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Function_;
|
||||
@ -101,10 +100,10 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [\PhpParser\Node\Stmt\Class_::class, \PhpParser\Node\Stmt\Property::class, \PhpParser\Node\Param::class, \PhpParser\Node\Stmt\ClassMethod::class, \PhpParser\Node\Stmt\Function_::class, \PhpParser\Node\Expr\Closure::class, \PhpParser\Node\Expr\ArrowFunction::class];
|
||||
return [\PhpParser\Node\Stmt\Class_::class, \PhpParser\Node\Stmt\Property::class, \PhpParser\Node\Stmt\ClassMethod::class, \PhpParser\Node\Stmt\Function_::class, \PhpParser\Node\Expr\Closure::class, \PhpParser\Node\Expr\ArrowFunction::class];
|
||||
}
|
||||
/**
|
||||
* @param Class_|Property|Param|ClassMethod|Function_|Closure|ArrowFunction $node
|
||||
* @param Class_|Property|ClassMethod|Function_|Closure|ArrowFunction $node
|
||||
*/
|
||||
public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
|
||||
{
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd08a87f692fcea45633084a12889324a19da49d8';
|
||||
public const PACKAGE_VERSION = 'f17c388cd85d329ab455e6962e65c45527d6687e';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-07-12 10:20:19';
|
||||
public const RELEASE_DATE = '2021-07-12 10:19:56';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210712\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8::getLoader();
|
||||
return ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8
|
||||
class ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd', '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\ComposerStaticInit7f00a04254443a30812bf851070b98c8::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit7f00a04254443a30812bf851070b98c8::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire7f00a04254443a30812bf851070b98c8($fileIdentifier, $file);
|
||||
composerRequirec1cb162ff193da14b9262c99fecd7ecd($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire7f00a04254443a30812bf851070b98c8($fileIdentifier, $file)
|
||||
function composerRequirec1cb162ff193da14b9262c99fecd7ecd($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit7f00a04254443a30812bf851070b98c8
|
||||
class ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3848,9 +3848,9 @@ class ComposerStaticInit7f00a04254443a30812bf851070b98c8
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7f00a04254443a30812bf851070b98c8::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7f00a04254443a30812bf851070b98c8::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit7f00a04254443a30812bf851070b98c8::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc1cb162ff193da14b9262c99fecd7ecd::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -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('RectorPrefix20210712\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8', false) && !interface_exists('ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8', false) && !trait_exists('ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8', false)) {
|
||||
spl_autoload_call('RectorPrefix20210712\ComposerAutoloaderInit7f00a04254443a30812bf851070b98c8');
|
||||
if (!class_exists('ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd', false) && !interface_exists('ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd', false) && !trait_exists('ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd', false)) {
|
||||
spl_autoload_call('RectorPrefix20210712\ComposerAutoloaderInitc1cb162ff193da14b9262c99fecd7ecd');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210712\Doctrine\Inflector\Inflector');
|
||||
@ -3308,9 +3308,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20210712\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire7f00a04254443a30812bf851070b98c8')) {
|
||||
function composerRequire7f00a04254443a30812bf851070b98c8() {
|
||||
return \RectorPrefix20210712\composerRequire7f00a04254443a30812bf851070b98c8(...func_get_args());
|
||||
if (!function_exists('composerRequirec1cb162ff193da14b9262c99fecd7ecd')) {
|
||||
function composerRequirec1cb162ff193da14b9262c99fecd7ecd() {
|
||||
return \RectorPrefix20210712\composerRequirec1cb162ff193da14b9262c99fecd7ecd(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user