diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-14 13:16:58 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-14 13:16:58 +0200 |
commit | 8379611dbecb5978fdaf1622b52af1a17c7ce9da (patch) | |
tree | 83c1e15121918dcf0daf5bb4f321dc2a61db0353 /lib/private/app | |
parent | f9dd750ed7e4986a36c1119865ba68c08ffd721b (diff) | |
download | nextcloud-server-8379611dbecb5978fdaf1622b52af1a17c7ce9da.tar.gz nextcloud-server-8379611dbecb5978fdaf1622b52af1a17c7ce9da.zip |
Variables don't have a class, so we can't use toString() on it
Diffstat (limited to 'lib/private/app')
-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_) { |