Updated Rector to commit a99574d6c5

a99574d6c5 Mini optimizations (#2272)
This commit is contained in:
Tomas Votruba 2022-05-09 11:16:33 +00:00
parent 0070cfd0cc
commit 377fd1911e
7 changed files with 25 additions and 27 deletions

View File

@ -22,6 +22,9 @@ use RectorPrefix20220509\Webmozart\Assert\Assert;
*/
final class OrderAttributesRector extends \Rector\Core\Rector\AbstractRector implements \Rector\Core\Contract\Rector\ConfigurableRectorInterface
{
/**
* @var string
*/
public const ALPHABETICALLY = 'alphabetically';
/**
* @var array<string, int>|array<string>
@ -93,11 +96,7 @@ CODE_SAMPLE
{
\RectorPrefix20220509\Webmozart\Assert\Assert::allString($configuration);
\RectorPrefix20220509\Webmozart\Assert\Assert::minCount($configuration, 1);
if ($this->isAlphabetically($configuration)) {
$this->configuration = $configuration;
} else {
$this->configuration = \array_flip($configuration);
}
$this->configuration = $this->isAlphabetically($configuration) ? $configuration : \array_flip($configuration);
}
/**
* @param array<AttributeGroup> $originalAttrGroups

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '4468743419d944b511ec2bcb5697c9a8a636b725';
public const PACKAGE_VERSION = 'a99574d6c57102de33751a50df726ed6cbabd6f9';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-09 12:44:14';
public const RELEASE_DATE = '2022-05-09 11:10:34';
/**
* @var string
*/

View File

@ -46,11 +46,10 @@ final class MissingRectorRulesReporter
{
$this->rectorOutputStyle->warning('We could not find any Rector rules to run. You have 2 options to add them:');
$this->rectorOutputStyle->title('1. Add single rule to "rector.php"');
$this->rectorOutputStyle->writeln(' $services = $containerConfigurator->services();');
$this->rectorOutputStyle->writeln(' $services->set(...);');
$this->rectorOutputStyle->writeln(' $rectorConfig->rule(...);');
$this->rectorOutputStyle->newLine(1);
$this->rectorOutputStyle->title('2. Add set of rules to "rector.php"');
$this->rectorOutputStyle->writeln(' $containerConfigurator->import(SetList::...);');
$this->rectorOutputStyle->writeln(' $rectorConfig->sets([SetList::...]);');
$this->rectorOutputStyle->newLine(1);
$this->rectorOutputStyle->title('Missing "rector.php" in your project? Let Rector create it for you');
$this->rectorOutputStyle->writeln(' vendor/bin/rector init');

2
vendor/autoload.php vendored
View File

@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89::getLoader();
return ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89
class ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit8cabc109305f74f577b88070d2933f5e::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit8cabc109305f74f577b88070d2933f5e::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequirea04b588e187dbd6fc9f19f805dce0d89($fileIdentifier, $file);
composerRequire8cabc109305f74f577b88070d2933f5e($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89
* @param string $file
* @return void
*/
function composerRequirea04b588e187dbd6fc9f19f805dce0d89($fileIdentifier, $file)
function composerRequire8cabc109305f74f577b88070d2933f5e($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89
class ComposerStaticInit8cabc109305f74f577b88070d2933f5e
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@ -3885,9 +3885,9 @@ class ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita04b588e187dbd6fc9f19f805dce0d89::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit8cabc109305f74f577b88070d2933f5e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit8cabc109305f74f577b88070d2933f5e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit8cabc109305f74f577b88070d2933f5e::$classMap;
}, null, ClassLoader::class);
}

View File

@ -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('RectorPrefix20220509\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89', false) && !interface_exists('ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89', false) && !trait_exists('ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89', false)) {
spl_autoload_call('RectorPrefix20220509\ComposerAutoloaderInita04b588e187dbd6fc9f19f805dce0d89');
if (!class_exists('ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e', false) && !interface_exists('ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e', false) && !trait_exists('ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e', false)) {
spl_autoload_call('RectorPrefix20220509\ComposerAutoloaderInit8cabc109305f74f577b88070d2933f5e');
}
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('RectorPrefix20220509\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220509\print_node(...func_get_args());
}
}
if (!function_exists('composerRequirea04b588e187dbd6fc9f19f805dce0d89')) {
function composerRequirea04b588e187dbd6fc9f19f805dce0d89() {
return \RectorPrefix20220509\composerRequirea04b588e187dbd6fc9f19f805dce0d89(...func_get_args());
if (!function_exists('composerRequire8cabc109305f74f577b88070d2933f5e')) {
function composerRequire8cabc109305f74f577b88070d2933f5e() {
return \RectorPrefix20220509\composerRequire8cabc109305f74f577b88070d2933f5e(...func_get_args());
}
}
if (!function_exists('scanPath')) {