Browse Source

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
remotes/origin/dropbox-use-clientmtime
Thomas Müller 10 years ago
parent
commit
db4dae527c
  1. 4
      lib/private/app/codechecker/nodevisitor.php

4
lib/private/app/codechecker/nodevisitor.php

@ -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…
Cancel
Save