diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-04-01 14:31:29 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-04-01 14:31:29 +0200 |
commit | 23d7fdeef0e938a3b890942a2db15ed1d919c6a5 (patch) | |
tree | a4aac37775a750f8b1afc9ee43e5df935f3902ae /lib/private/App | |
parent | f34578586516af7c5659a9143c447b67dd50848d (diff) | |
download | nextcloud-server-23d7fdeef0e938a3b890942a2db15ed1d919c6a5.tar.gz nextcloud-server-23d7fdeef0e938a3b890942a2db15ed1d919c6a5.zip |
Skip check if CONSTANT on real object is used
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/CodeChecker/NodeVisitor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/App/CodeChecker/NodeVisitor.php b/lib/private/App/CodeChecker/NodeVisitor.php index b7f256ea3d7..f3e9bb57fce 100644 --- a/lib/private/App/CodeChecker/NodeVisitor.php +++ b/lib/private/App/CodeChecker/NodeVisitor.php @@ -162,7 +162,7 @@ class NodeVisitor extends NodeVisitorAbstract { if ($node->class instanceof Name) { $this->checkBlackList($node->class->toString(), CodeChecker::CLASS_CONST_FETCH_NOT_ALLOWED, $node); } - if ($node->class instanceof Node\Expr\Variable) { + if ($node->class instanceof Node\Expr\Variable || $node->class instanceof Node\Expr\PropertyFetch) { /** * TODO: find a way to detect something like this: * $c = "OC_API"; |