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:
Thomas Müller 2015-10-14 14:10:25 +02:00
commit db4dae527c
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_) {