diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-02 22:55:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 22:55:52 +0200 |
commit | cffa71ab33cf0be0977766360d391b30dd44ec11 (patch) | |
tree | 8618b3662892170439d1af5cd452f7b284bf645a | |
parent | f2e9babaabeaecdf84bc7ae57cc7be6c7e16e431 (diff) | |
parent | 23d7fdeef0e938a3b890942a2db15ed1d919c6a5 (diff) | |
download | nextcloud-server-cffa71ab33cf0be0977766360d391b30dd44ec11.tar.gz nextcloud-server-cffa71ab33cf0be0977766360d391b30dd44ec11.zip |
Merge pull request #14925 from nextcloud/bugfix/14824-skip-check
Skip check if CONSTANT on real object is used
-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"; |