Merge pull request #19764 from owncloud/issue-19759-app-check-code-issue
Variables don't have a class, so we can't use toString() on it
This commit is contained in:
commit
db4dae527c
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue