summaryrefslogtreecommitdiffstats
path: root/tests/data/app/code-checker/test-deprecated-constant-sub.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-constant-sub.php')
-rw-r--r--tests/data/app/code-checker/test-deprecated-constant-sub.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-constant-sub.php b/tests/data/app/code-checker/test-deprecated-constant-sub.php
index 0ef837c14c6..86e0ff52efe 100644
--- a/tests/data/app/code-checker/test-deprecated-constant-sub.php
+++ b/tests/data/app/code-checker/test-deprecated-constant-sub.php
@@ -5,8 +5,4 @@ use OCP\NamespaceName;
/**
* Class BadClass - creating an instance of a blacklisted class is not allowed
*/
-class BadClass {
- public function test() {
- return NamespaceName\ClassName::CONSTANT_NAME;
- }
-}
+NamespaceName\ClassName::CONSTANT_NAME;