Updated Rector to commit ee070861c3c44e0d58a668059689eef078f2d888

ee070861c3 [Rector] use property promotion and arrow functions (#66)
This commit is contained in:
Tomas Votruba 2021-05-17 23:36:38 +00:00
parent c8f745a2e7
commit 52befc0fb3
5 changed files with 18 additions and 18 deletions

View File

@ -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
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitf9cad6b517a51082ee4ee4b6ed0ff592::getLoader();
return ComposerAutoloaderInit1303433c3afaeefd67209c1c96fe0416::getLoader();

View File

@ -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;

View File

@ -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);
}

View File

@ -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')) {