public function enterNode(Node $node)
    {
        if ($node instanceof Namespace_) {
            // If this is the same namespace as last namespace, let's do ourselves
            // a favor and reload all the aliases...
            if (\strtolower($node->name) === \strtolower($this->lastNamespace)) {
                $this->aliases = $this->lastAliases;
            }
        }
    }
public function enterNode(Node $node)
    {
        if ($node instanceof Namespace_) {
            // If this is the same namespace as last namespace, let's do ourselves
            // a favor and reload all the aliases...
            if (\strtolower($node->name) === \strtolower($this->lastNamespace)) {
                $this->aliases = $this->lastAliases;
            }
        }
    }
public function enterNode ( Node $ node ) { if ( $ node instanceof Namespace_ ) { // If this is the same namespace as last namespace, let's do ourselves // a favor and reload all the aliases... if ( \ strtolower ( $ node -> name ) === \ strtolower ( $ this -> lastNamespace ) ) { $ this -> aliases = $ this -> lastAliases ; } } }
Re-load the last set of use statements on re-entering a namespace.

This isn't how namespaces normally work, but because PsySH has to spin
up a new namespace for every line of code, we do this to make things
work like you'd expect.

@param Node $node
Re - load the last set of use statements on re - entering a namespace .