Variables don't have a class, so we can't use toString() on it

This commit is contained in:
Joas Schilling 2015-10-14 13:16:58 +02:00
parent f9dd750ed7
commit 8379611dbe
1 changed files with 2 additions and 2 deletions

View File

@ -167,9 +167,9 @@ class NodeVisitor extends NodeVisitorAbstract {
* $c = "OC_API";
* $n = $i::ADMIN_AUTH;
*/
} else {
$this->checkBlackListConstant($node->class->toString(), $node->name, $node);
}
$this->checkBlackListConstant($node->class->toString(), $node->name, $node);
}
}
if ($node instanceof Node\Expr\New_) {