Updated Rector to commit ae2e38ed98

ae2e38ed98 [CodeQuality] Skip empty array push args and no 2nd arg on ChangeArrayPushToArrayAssignRector (#2266)
This commit is contained in:
Tomas Votruba 2022-05-08 11:21:43 +00:00
parent 374898f010
commit 6dd3060af0
6 changed files with 25 additions and 19 deletions

View File

@ -55,8 +55,14 @@ CODE_SAMPLE
return null;
}
$args = $funcCall->getArgs();
if ($args === []) {
return null;
}
/** @var Arg $firstArg */
$firstArg = \array_shift($args);
if ($args === []) {
return null;
}
$arrayDimFetch = new \PhpParser\Node\Expr\ArrayDimFetch($firstArg->value);
$newStmts = [];
foreach ($args as $key => $arg) {

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '88c9b8e20dbd62bbc371c933c81bd61e9283d555';
public const PACKAGE_VERSION = 'ae2e38ed988ab87ed45bd9c4524a8f8b6a90c33e';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-08 10:46:35';
public const RELEASE_DATE = '2022-05-08 11:15:42';
/**
* @var string
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a
class ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit0fa50494de08aa91b06c3d14d3318703::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit0fa50494de08aa91b06c3d14d3318703::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire0054dd371f0c02ad693dd60c9e27805a($fileIdentifier, $file);
composerRequire0fa50494de08aa91b06c3d14d3318703($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a
* @param string $file
* @return void
*/
function composerRequire0054dd371f0c02ad693dd60c9e27805a($fileIdentifier, $file)
function composerRequire0fa50494de08aa91b06c3d14d3318703($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 ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a
class ComposerStaticInit0fa50494de08aa91b06c3d14d3318703
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@ -3882,9 +3882,9 @@ class ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0054dd371f0c02ad693dd60c9e27805a::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit0fa50494de08aa91b06c3d14d3318703::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0fa50494de08aa91b06c3d14d3318703::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0fa50494de08aa91b06c3d14d3318703::$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('RectorPrefix20220508\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a', false) && !interface_exists('ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a', false) && !trait_exists('ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a', false)) {
spl_autoload_call('RectorPrefix20220508\ComposerAutoloaderInit0054dd371f0c02ad693dd60c9e27805a');
if (!class_exists('ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703', false) && !interface_exists('ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703', false) && !trait_exists('ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703', false)) {
spl_autoload_call('RectorPrefix20220508\ComposerAutoloaderInit0fa50494de08aa91b06c3d14d3318703');
}
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('RectorPrefix20220508\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220508\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire0054dd371f0c02ad693dd60c9e27805a')) {
function composerRequire0054dd371f0c02ad693dd60c9e27805a() {
return \RectorPrefix20220508\composerRequire0054dd371f0c02ad693dd60c9e27805a(...func_get_args());
if (!function_exists('composerRequire0fa50494de08aa91b06c3d14d3318703')) {
function composerRequire0fa50494de08aa91b06c3d14d3318703() {
return \RectorPrefix20220508\composerRequire0fa50494de08aa91b06c3d14d3318703(...func_get_args());
}
}
if (!function_exists('scanPath')) {