[Pkg-owncloud-commits] [owncloud] 13/129: Variables don't have a class, so we can't use toString() on it

David Prévot taffit at moszumanska.debian.org
Thu Nov 5 01:04:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit a470b4917c2eb40b2a6f069d2897fd46c7767bf5
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Wed Oct 14 13:16:58 2015 +0200

    Variables don't have a class, so we can't use toString() on it
---
 lib/private/app/codechecker/nodevisitor.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/app/codechecker/nodevisitor.php b/lib/private/app/codechecker/nodevisitor.php
index 3295f35..cf85014 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_) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list