Updated Rector to commit 8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361

8ae33c5f7c [Php70] Remove appendArgs() usage on CallUserMethodRector (#4731)
This commit is contained in:
Tomas Votruba 2023-08-09 12:42:27 +00:00
parent e7097335cd
commit 80654c23af
14 changed files with 27 additions and 27 deletions

View File

@ -56,7 +56,7 @@ final class CallUserMethodRector extends AbstractRector implements MinPhpVersion
$newArgs = [$this->nodeFactory->createArg([$oldArgs[1]->value, $oldArgs[0]->value])];
unset($oldArgs[0]);
unset($oldArgs[1]);
$node->args = $this->appendArgs($newArgs, $oldArgs);
$node->args = \array_merge($newArgs, $oldArgs);
return $node;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b93e285a4a72ef12d4892852118d5ab7b1b48bdd';
public const PACKAGE_VERSION = '8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-09 11:53:17';
public const RELEASE_DATE = '2023-08-09 13:38:30';
/**
* @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 ComposerAutoloaderInit49fe253cd6feaf0ecb83e42669503603::getLoader();
return ComposerAutoloaderInite7528a1e8636efa5d0d7e0fd85e7f579::getLoader();

View File

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

View File

@ -2058,12 +2058,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "04381624cfee50410f0fd06f4cedd21fbd883535"
"reference": "7b5dd42c595409787a37b6d171f893b8c33255df"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/04381624cfee50410f0fd06f4cedd21fbd883535",
"reference": "04381624cfee50410f0fd06f4cedd21fbd883535",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/7b5dd42c595409787a37b6d171f893b8c33255df",
"reference": "7b5dd42c595409787a37b6d171f893b8c33255df",
"shasum": ""
},
"require": {
@ -2092,7 +2092,7 @@
"tomasvotruba\/type-coverage": "^0.1",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-07-26T13:18:46+00:00",
"time": "2023-08-09T12:38:39+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main d09e0f3'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 44cec67'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0438162'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 40cd007'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main d09e0f3'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 44cec67'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7b5dd42'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 40cd007'));
private function __construct()
{
}

View File

@ -111,7 +111,7 @@ final class AssertComparisonToSpecificMethodRector extends AbstractRector
}
unset($oldArguments[0]);
$newArgs = [$firstArgument, $secondArgument];
$node->args = $this->appendArgs($newArgs, $oldArguments);
$node->args = \array_merge($newArgs, $oldArguments);
}
private function isConstantValue(Expr $expr) : bool
{

View File

@ -87,7 +87,7 @@ final class AssertFalseStrposToContainsRector extends AbstractRector
$secondArgument = $strposFuncCallNode->getArgs()[0];
unset($oldArguments[0]);
$newArgs = [$firstArgument, $secondArgument];
$node->args = $this->appendArgs($newArgs, $oldArguments);
$node->args = \array_merge($newArgs, $oldArguments);
return $node;
}
}

View File

@ -147,7 +147,7 @@ final class AssertIssetToSpecificMethodRector extends AbstractRector
$oldArgs = $node->getArgs();
unset($oldArgs[0]);
$newArgs = $this->nodeFactory->createArgs([new String_($name), $propertyFetch->var]);
$node->args = $this->appendArgs($newArgs, $oldArgs);
$node->args = \array_merge($newArgs, $oldArgs);
return $node;
}
/**

View File

@ -100,7 +100,7 @@ CODE_SAMPLE
}
unset($node->args[0]);
$newArgs = $this->nodeFactory->createArgs([$secondArgument->value->value, $secondArg]);
$node->args = $this->appendArgs($newArgs, $node->getArgs());
$node->args = \array_merge($newArgs, $node->getArgs());
$this->identifierManipulator->renameNodeWithMap($node, $map);
return $node;
}

View File

@ -141,12 +141,12 @@ final class AssertTrueFalseToSpecificMethodRector extends AbstractRector
{
if (\in_array($funcCallOrEmptyNodeName, ['in_array', 'array_search'], \true) && \count($funcCallOrEmptyNodeArgs) === 3) {
unset($funcCallOrEmptyNodeArgs[2]);
return $this->appendArgs($funcCallOrEmptyNodeArgs, $oldArguments);
return \array_merge($funcCallOrEmptyNodeArgs, $oldArguments);
}
if ($funcCallOrEmptyNodeName === 'is_a') {
$newArgs = [$funcCallOrEmptyNodeArgs[1], $funcCallOrEmptyNodeArgs[0]];
return $this->appendArgs($newArgs, $oldArguments);
return \array_merge($newArgs, $oldArguments);
}
return $this->appendArgs($funcCallOrEmptyNodeArgs, $oldArguments);
return \array_merge($funcCallOrEmptyNodeArgs, $oldArguments);
}
}

View File

@ -97,7 +97,7 @@ CODE_SAMPLE
unset($node->args[1]);
$propertyExistsFuncCall = new FuncCall(new Name('property_exists'), [new Arg($firstArg), new Arg($secondArg)]);
$newArgs = $this->nodeFactory->createArgs([$propertyExistsFuncCall]);
$node->args = $this->appendArgs($newArgs, $node->getArgs());
$node->args = \array_merge($newArgs, $node->getArgs());
$this->identifierManipulator->renameNodeWithMap($node, $map);
return $node;
}