Skip to content

Commit

Permalink
Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec
Browse files Browse the repository at this point in the history
rectorphp/rector-src@cbc632c RenameFunctionRector: prevent repeated isName() calls (#5003)
  • Loading branch information
TomasVotruba committed Sep 12, 2023
1 parent f8df046 commit 0d66043
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
6 changes: 5 additions & 1 deletion rules/Renaming/Rector/FuncCall/RenameFunctionRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit546d13250022c5fbfb7b0feeb9130391::getLoader();
return ComposerAutoloaderInitcf163137832100dcfaee9be37765beff::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit546d13250022c5fbfb7b0feeb9130391
class ComposerAutoloaderInitcf163137832100dcfaee9be37765beff
{
private static $loader;

Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit546d13250022c5fbfb7b0feeb9130391
class ComposerStaticInitcf163137832100dcfaee9be37765beff
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 0d66043

Please sign in to comment.