diff --git a/src/Type/Parser/Lexer/AliasLexer.php b/src/Type/Parser/Lexer/AliasLexer.php index d5320a30..192bf2df 100644 --- a/src/Type/Parser/Lexer/AliasLexer.php +++ b/src/Type/Parser/Lexer/AliasLexer.php @@ -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;