Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 24, 2024
1 parent a8c4876 commit 76b68ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
use Rector\Renaming\Collector\RenamedNameCollector;
use Rector\StaticTypeMapper\StaticTypeMapper;
use Rector\StaticTypeMapper\ValueObject\Type\AliasedObjectType;
use Rector\StaticTypeMapper\ValueObject\Type\ShortenedObjectType;

final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
Expand Down Expand Up @@ -134,8 +135,8 @@ private function resolveNamespacedName(
return $name;
}

if ($staticType instanceof ShortenedObjectType) {
return $name;
if ($staticType instanceof ShortenedObjectType || $staticType instanceof AliasedObjectType) {
return $staticType->getFullyQualifiedName();
}

$uses = $this->useImportsResolver->resolve();
Expand Down

0 comments on commit 76b68ed

Please sign in to comment.