Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec

cbc632c1ed RenameFunctionRector: prevent repeated isName() calls (#5003)
This commit is contained in:
Tomas Votruba 2023-09-12 11:58:35 +00:00
parent f8df0467fb
commit 0d6604344e
5 changed files with 17 additions and 13 deletions

View File

@ -43,8 +43,12 @@ final class RenameFunctionRector extends AbstractRector implements ConfigurableR
if ($isVirtual) {
return null;
}
$nodeName = $this->getName($node);
if ($nodeName === null) {
return null;
}
foreach ($this->oldFunctionToNewFunction as $oldFunction => $newFunction) {
if (!$this->isName($node, $oldFunction)) {
if (!$this->nodeNameResolver->isStringName($nodeName, $oldFunction)) {
continue;
}
$node->name = $this->createName($newFunction);

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ef003b2458043b677bdd72522439bd80afb44a2c';
public const PACKAGE_VERSION = 'cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-12 10:10:20';
public const RELEASE_DATE = '2023-09-12 18:55:31';
/**
* @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 ComposerAutoloaderInit546d13250022c5fbfb7b0feeb9130391::getLoader();
return ComposerAutoloaderInitcf163137832100dcfaee9be37765beff::getLoader();

View File

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