1
0
Fork 0

Revert change in SymbolFinder

pull/31/head
Felix Becker 2016-09-29 19:33:41 +02:00
parent d1fd4bcd26
commit fa9e540c47
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class SymbolFinder extends NodeVisitorAbstract
// If we enter a named node, push its name onto name stack.
// Else push the current name onto stack.
if (!empty($node->name) && !empty((string)$node->name)) {
if (!empty($node->name) && (is_string($node->name) || method_exists($node->name, '__toString')) && !empty((string)$node->name)) {
if (empty($containerName)) {
$this->nameStack[] = (string)$node->name;
} else if ($node instanceof Node\Stmt\ClassMethod) {