[Pkg-owncloud-commits] [owncloud] 20/129: The constant is now deprecated

David Prévot taffit at moszumanska.debian.org
Thu Nov 5 01:04:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit c4c82964953372b91300273e3557a987f55feec2
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Wed Oct 14 15:15:42 2015 +0200

    The constant is now deprecated
---
 tests/data/app/code-checker/test-const.php         | 2 +-
 tests/lib/app/codechecker/deprecationchecktest.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/data/app/code-checker/test-const.php b/tests/data/app/code-checker/test-const.php
index 2af6baf..7ea3bd6 100644
--- a/tests/data/app/code-checker/test-const.php
+++ b/tests/data/app/code-checker/test-const.php
@@ -5,6 +5,6 @@
  */
 class BadClass {
 	public function foo() {
-		$bar = OC_API::ADMIN_AUTH;
+		$bar = \OC_API::ADMIN_AUTH;
 	}
 }
diff --git a/tests/lib/app/codechecker/deprecationchecktest.php b/tests/lib/app/codechecker/deprecationchecktest.php
index 2cf64a9..ee69f07 100644
--- a/tests/lib/app/codechecker/deprecationchecktest.php
+++ b/tests/lib/app/codechecker/deprecationchecktest.php
@@ -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'],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list