diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 14:10:25 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 14:10:25 +0200 |
commit | db4dae527c7b8183bd4fab5db76f364b5e778ab4 (patch) | |
tree | 4cabd393a989f8140529fa755ccba30f8164080e | |
parent | df1313d025b483e823371d1e6aee001350095ad4 (diff) | |
parent | 8379611dbecb5978fdaf1622b52af1a17c7ce9da (diff) | |
download | nextcloud-server-db4dae527c7b8183bd4fab5db76f364b5e778ab4.tar.gz nextcloud-server-db4dae527c7b8183bd4fab5db76f364b5e778ab4.zip |
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
-rw-r--r-- | lib/private/app/codechecker/nodevisitor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/app/codechecker/nodevisitor.php b/lib/private/app/codechecker/nodevisitor.php index 3295f354324..cf850147fd8 100644 --- a/lib/private/app/codechecker/nodevisitor.php +++ b/lib/private/app/codechecker/nodevisitor.php @@ -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_) { |