mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit ee070861c3c44e0d58a668059689eef078f2d888
ee070861c3
[Rector] use property promotion and arrow functions (#66)
This commit is contained in:
parent
c8f745a2e7
commit
52befc0fb3
@ -130,7 +130,7 @@ final class PhpDocInfo
|
||||
{
|
||||
$name = $this->annotationNaming->normalizeName($name);
|
||||
$tags = $this->phpDocNode->getTags();
|
||||
$tags = \array_filter($tags, function (\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode $tag) use($name) : bool {
|
||||
$tags = \array_filter($tags, function (\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode $tag) use($name) {
|
||||
return $tag->name === $name;
|
||||
});
|
||||
$tags = \array_values($tags);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592::getLoader();
|
||||
return ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416::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 ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592
|
||||
class ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416', '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\ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1303433c3afaeefd67209c1c96fe0416::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit1303433c3afaeefd67209c1c96fe0416::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequiref9cad6b517a51082ee4ee4b6ed0ff592($fileIdentifier, $file);
|
||||
composerRequire1303433c3afaeefd67209c1c96fe0416($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequiref9cad6b517a51082ee4ee4b6ed0ff592($fileIdentifier, $file)
|
||||
function composerRequire1303433c3afaeefd67209c1c96fe0416($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 ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592
|
||||
class ComposerStaticInit1303433c3afaeefd67209c1c96fe0416
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3454,9 +3454,9 @@ class ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf9cad6b517a51082ee4ee4b6ed0ff592::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1303433c3afaeefd67209c1c96fe0416::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1303433c3afaeefd67209c1c96fe0416::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1303433c3afaeefd67209c1c96fe0416::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
|
||||
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
|
||||
spl_autoload_call('RectorPrefix20210517\CheckoutEntityFactory');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592', false) && !interface_exists('ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592', false) && !trait_exists('ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592', false)) {
|
||||
spl_autoload_call('RectorPrefix20210517\ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592');
|
||||
if (!class_exists('ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416', false) && !interface_exists('ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416', false) && !trait_exists('ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416', false)) {
|
||||
spl_autoload_call('RectorPrefix20210517\ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210517\Doctrine\Inflector\Inflector');
|
||||
@ -95,9 +95,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20210517\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequiref9cad6b517a51082ee4ee4b6ed0ff592')) {
|
||||
function composerRequiref9cad6b517a51082ee4ee4b6ed0ff592() {
|
||||
return \RectorPrefix20210517\composerRequiref9cad6b517a51082ee4ee4b6ed0ff592(...func_get_args());
|
||||
if (!function_exists('composerRequire1303433c3afaeefd67209c1c96fe0416')) {
|
||||
function composerRequire1303433c3afaeefd67209c1c96fe0416() {
|
||||
return \RectorPrefix20210517\composerRequire1303433c3afaeefd67209c1c96fe0416(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user