mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit 035e7bdb76a5496c65b1c112933e4afe06ddc6f8
035e7bdb76
[NodeTypeResolver] Clean up "this" from NameTypeResolver, as not from Name node (#5873)
This commit is contained in:
parent
c74c9ca74f
commit
faba2d1971
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '419480a0c415b5814065953e0ee8b90a785323a2';
|
||||
public const PACKAGE_VERSION = '035e7bdb76a5496c65b1c112933e4afe06ddc6f8';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-05-13 17:34:46';
|
||||
public const RELEASE_DATE = '2024-05-13 19:19:41';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -78,7 +78,7 @@ final class NameTypeResolver implements NodeTypeResolverInterface
|
|||
private function resolveFullyQualifiedName(Name $name) : string
|
||||
{
|
||||
$nameValue = $name->toString();
|
||||
if (\in_array($nameValue, [ObjectReference::SELF, ObjectReference::STATIC, 'this'], \true)) {
|
||||
if (\in_array($nameValue, [ObjectReference::SELF, ObjectReference::STATIC], \true)) {
|
||||
$classReflection = $this->resolveClassReflection($name);
|
||||
if (!$classReflection instanceof ClassReflection || $classReflection->isAnonymous()) {
|
||||
return $name->toString();
|
||||
|
|
Loading…
Reference in New Issue
Block a user