summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-14 14:10:25 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-14 14:10:25 +0200
commitdb4dae527c7b8183bd4fab5db76f364b5e778ab4 (patch)
tree4cabd393a989f8140529fa755ccba30f8164080e
parentdf1313d025b483e823371d1e6aee001350095ad4 (diff)
parent8379611dbecb5978fdaf1622b52af1a17c7ce9da (diff)
downloadnextcloud-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.php4
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_) {