mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 068799f59b289bef06b9c1f384df4301b19e726e
068799f59b
[Performance] Early skip func call name on ClassRenamer (#5837)
This commit is contained in:
parent
1e8aeb3de9
commit
b9839a24cb
|
@ -121,13 +121,16 @@ final class ClassRenamer
|
||||||
$classReflection = $this->reflectionProvider->getClass($newName);
|
$classReflection = $this->reflectionProvider->getClass($newName);
|
||||||
return $classReflection->isInterface();
|
return $classReflection->isInterface();
|
||||||
}
|
}
|
||||||
return $fullyQualified->getAttribute(AttributeKey::IS_FUNCCALL_NAME) === \true;
|
return \false;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param array<string, string> $oldToNewClasses
|
* @param array<string, string> $oldToNewClasses
|
||||||
*/
|
*/
|
||||||
private function refactorName(FullyQualified $fullyQualified, array $oldToNewClasses) : ?FullyQualified
|
private function refactorName(FullyQualified $fullyQualified, array $oldToNewClasses) : ?FullyQualified
|
||||||
{
|
{
|
||||||
|
if ($fullyQualified->getAttribute(AttributeKey::IS_FUNCCALL_NAME) === \true) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$stringName = $fullyQualified->toString();
|
$stringName = $fullyQualified->toString();
|
||||||
$newName = $oldToNewClasses[$stringName] ?? null;
|
$newName = $oldToNewClasses[$stringName] ?? null;
|
||||||
if ($newName === null) {
|
if ($newName === null) {
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '9ce6af83b6996631fe2a13cca64d25142dc9fb15';
|
public const PACKAGE_VERSION = '068799f59b289bef06b9c1f384df4301b19e726e';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-20 19:22:19';
|
public const RELEASE_DATE = '2024-04-21 02:27:01';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue