public function beforeTraverse(array $nodes) { // if the visitor is used without PhpFile nodes $this->namespace = null; $this->aliases = array(); }