Variables don't have a class, so we can't use toString() on it
This commit is contained in:
parent
f9dd750ed7
commit
8379611dbe
|
@ -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_) {
|
||||
|
|
Loading…
Reference in New Issue