Skip to content
Snippets Groups Projects
Commit d904a09a authored by Joas Schilling's avatar Joas Schilling
Browse files

The constant is now deprecated

parent aa108250
Branches
No related tags found
No related merge requests found
......@@ -5,6 +5,6 @@
*/
class BadClass {
public function foo() {
$bar = OC_API::ADMIN_AUTH;
$bar = \OC_API::ADMIN_AUTH;
}
}
......@@ -38,6 +38,7 @@ class DeprecationCheckTest extends TestCase {
['OCP\AppFramework\IApi', 1006, 'test-deprecated-use-alias.php'],
['AppFramework\IApi', 1001, 'test-deprecated-use-sub.php'],
['OAF\IApi', 1001, 'test-deprecated-use-sub-alias.php'],
['OC_API::ADMIN_AUTH', 1003, 'test-const.php'],
];
}
......@@ -61,7 +62,6 @@ class DeprecationCheckTest extends TestCase {
['test-extends.php'],
['test-implements.php'],
['test-static-call.php'],
['test-const.php'],
['test-new.php'],
['test-use.php'],
['test-identical-operator.php'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment