diff --git a/rules/Renaming/Rector/FuncCall/RenameFunctionRector.php b/rules/Renaming/Rector/FuncCall/RenameFunctionRector.php index 1178238c30cb..be4067c75761 100644 --- a/rules/Renaming/Rector/FuncCall/RenameFunctionRector.php +++ b/rules/Renaming/Rector/FuncCall/RenameFunctionRector.php @@ -43,8 +43,12 @@ public function refactor(Node $node) : ?Node 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); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index efba710669cf..f88b8b37f891 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/vendor/autoload.php b/vendor/autoload.php index e5dedea7c371..a60c2e9deb58 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit546d13250022c5fbfb7b0feeb9130391::getLoader(); +return ComposerAutoloaderInitcf163137832100dcfaee9be37765beff::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 6516f6327f4a..1b9c8b800a56 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit546d13250022c5fbfb7b0feeb9130391 +class ComposerAutoloaderInitcf163137832100dcfaee9be37765beff { private static $loader; @@ -22,17 +22,17 @@ public static function getLoader() 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; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 0dfea43990e0..1beb34ff5743 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -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); }