diff options
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-constant-alias.php')
-rw-r--r-- | tests/data/app/code-checker/test-deprecated-constant-alias.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-constant-alias.php b/tests/data/app/code-checker/test-deprecated-constant-alias.php new file mode 100644 index 00000000000..b5a5bfdb762 --- /dev/null +++ b/tests/data/app/code-checker/test-deprecated-constant-alias.php @@ -0,0 +1,8 @@ +<?php + +use OCP\NamespaceName\ClassName as Alias; + +/** + * Class BadClass - creating an instance of a blacklisted class is not allowed + */ +Alias::CONSTANT_NAME; |