Skip to content

Commit

Permalink
fix: properly parse class name in same single-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Dec 25, 2023
1 parent a53ef93 commit a462fe1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Type/Parser/Lexer/AliasLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,7 @@ private function resolveAlias(string $symbol): string

private function resolveNamespaced(string $symbol): string
{
$reflection = $this->reflection;

if ($reflection instanceof ReflectionFunction) {
$reflection = $reflection->getClosureScopeClass();
}

if (! $reflection) {
return $symbol;
}

$namespace = $reflection->getNamespaceName();
$namespace = $this->reflection->getNamespaceName();

if (! $namespace) {
return $symbol;
Expand Down

0 comments on commit a462fe1

Please # to comment.