Updated Rector to commit 035e7bdb76a5496c65b1c112933e4afe06ddc6f8

035e7bdb76 [NodeTypeResolver] Clean up "this" from NameTypeResolver, as not from Name node (#5873)
This commit is contained in:
Tomas Votruba 2024-05-13 12:23:37 +00:00
parent c74c9ca74f
commit faba2d1971
2 changed files with 3 additions and 3 deletions

View File

@ -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
*/

View File

@ -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();