Updated Rector to commit 25d6a9740ed21735c4194b94f4d5cabe5b976832

25d6a9740e Cleanup usage of NodesToAddCollector, return nodes directly instead (#4003)
This commit is contained in:
Tomas Votruba 2023-05-28 20:45:54 +00:00
parent aadd5bb215
commit 84236fa01b
5 changed files with 12 additions and 15 deletions

View File

@ -79,7 +79,6 @@ CODE_SAMPLE
// only value: list(, $value) = each($values);
if ($listNode->items[1] instanceof ArrayItem && !$listNode->items[0] instanceof ArrayItem) {
$nextFuncCall = $this->nodeFactory->createFuncCall('next', $eachFuncCall->args);
// $this->nodesToAddCollector->addNodeAfterNode($nextFuncCall, $assign);
$currentFuncCall = $this->nodeFactory->createFuncCall('current', $eachFuncCall->args);
$secondArrayItem = $listNode->items[1];
$currentAssign = new Assign($secondArrayItem->value, $currentFuncCall);
@ -92,9 +91,7 @@ CODE_SAMPLE
throw new ShouldNotHappenException();
}
$currentAssign = new Assign($secondArrayItem->value, $currentFuncCall);
// $this->nodesToAddCollector->addNodeAfterNode($assign, $assign);
$nextFuncCall = $this->nodeFactory->createFuncCall('next', $eachFuncCall->args);
// $this->nodesToAddCollector->addNodeAfterNode($nextFuncCall, $node);
$keyFuncCall = $this->nodeFactory->createFuncCall('key', $eachFuncCall->args);
$firstArrayItem = $listNode->items[0];
if (!$firstArrayItem instanceof ArrayItem) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3fb912c94432b75fb50a14071f584671a882970d';
public const PACKAGE_VERSION = '25d6a9740ed21735c4194b94f4d5cabe5b976832';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-28 16:13:37';
public const RELEASE_DATE = '2023-05-28 21:41:47';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit5c541745c6e002c5e9b929f6905083cb
class ComposerAutoloaderInita9bdb21bfe3a97101668fa0c818eee9d
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit5c541745c6e002c5e9b929f6905083cb
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit5c541745c6e002c5e9b929f6905083cb', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInita9bdb21bfe3a97101668fa0c818eee9d', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit5c541745c6e002c5e9b929f6905083cb', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInita9bdb21bfe3a97101668fa0c818eee9d', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit5c541745c6e002c5e9b929f6905083cb::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit5c541745c6e002c5e9b929f6905083cb::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit5c541745c6e002c5e9b929f6905083cb
class ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3086,9 +3086,9 @@ class ComposerStaticInit5c541745c6e002c5e9b929f6905083cb
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit5c541745c6e002c5e9b929f6905083cb::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit5c541745c6e002c5e9b929f6905083cb::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit5c541745c6e002c5e9b929f6905083cb::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita9bdb21bfe3a97101668fa0c818eee9d::$classMap;
}, null, ClassLoader::class);
}