Skip to content
Snippets Groups Projects
Commit 8379611d authored by Joas Schilling's avatar Joas Schilling
Browse files

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

parent f9dd750e
Branches
No related tags found
No related merge requests found
......@@ -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_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment