1
0
Fork 0

fix(scope): reset on namespace declaration

pull/609/head
Declspeck 2018-02-25 01:05:23 +02:00
parent 3a2bba7986
commit f4db997632
No known key found for this signature in database
GPG Key ID: F0417663122A2189
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class TreeTraverser
$this->definitionResolver->getTypeFromNode($node, $scope),
$node
);
} else if ($node instanceof Statement\NamespaceDefinition) {
} else if ($node instanceof Node\Statement\NamespaceDefinition) {
// After a new namespace A\B;, the current alias table is flushed.
$scope->clearResolvedNameCache();
}