Variables don't have a class, so we can't use toString() on it
This commit is contained in:
parent
f9dd750ed7
commit
8379611dbe
|
@ -167,11 +167,11 @@ class NodeVisitor extends NodeVisitorAbstract {
|
|||
* $c = "OC_API";
|
||||
* $n = $i::ADMIN_AUTH;
|
||||
*/
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->checkBlackListConstant($node->class->toString(), $node->name, $node);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($node instanceof Node\Expr\New_) {
|
||||
if (!is_null($node->class)) {
|
||||
if ($node->class instanceof Name) {
|
||||
|
|
Loading…
Reference in New Issue