aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/app
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-15 16:08:54 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-17 12:34:56 +0200
commit483c886291f23577417d820a8e65702ec0d1cc85 (patch)
tree6069fa19609381a174f68757be2a6d405445fbaa /lib/private/app
parentd2fc1b230235e1aa9fa5d956e9a7edbbeef72dfb (diff)
downloadnextcloud-server-483c886291f23577417d820a8e65702ec0d1cc85.tar.gz
nextcloud-server-483c886291f23577417d820a8e65702ec0d1cc85.zip
Add deprecation version to the list
Diffstat (limited to 'lib/private/app')
-rw-r--r--lib/private/app/codecheckvisitor.php9
-rw-r--r--lib/private/app/deprecationcodechecker.php14
2 files changed, 14 insertions, 9 deletions
diff --git a/lib/private/app/codecheckvisitor.php b/lib/private/app/codecheckvisitor.php
index 0dec5b3715d..2d0569e8324 100644
--- a/lib/private/app/codecheckvisitor.php
+++ b/lib/private/app/codecheckvisitor.php
@@ -38,14 +38,19 @@ class CodeCheckVisitor extends NodeVisitorAbstract {
/**
* @param string $blackListDescription
- * @param string[] $blackListedClassNames
+ * @param array $blackListedClassNames
* @param bool $checkEqualOperatorUsage
*/
public function __construct($blackListDescription, $blackListedClassNames, $checkEqualOperatorUsage) {
$this->blackListDescription = $blackListDescription;
$this->blackListedClassNames = [];
- foreach ($blackListedClassNames as $class) {
+ foreach ($blackListedClassNames as $class => $blackListInfo) {
+ if (is_numeric($class) && is_string($blackListInfo)) {
+ $class = $blackListInfo;
+ $blackListInfo = null;
+ }
+
$class = strtolower($class);
$this->blackListedClassNames[$class] = $class;
}
diff --git a/lib/private/app/deprecationcodechecker.php b/lib/private/app/deprecationcodechecker.php
index c89428927c1..32ae4e7d7ba 100644
--- a/lib/private/app/deprecationcodechecker.php
+++ b/lib/private/app/deprecationcodechecker.php
@@ -33,12 +33,12 @@ class DeprecationCodeChecker extends CodeChecker {
protected $blackListedClassNames = [
// Deprecated classes
- 'OCP\IConfig',
- 'OCP\Contacts',
- 'OCP\DB',
- 'OCP\IHelper',
- 'OCP\JSON',
- 'OCP\Response',
- 'OCP\AppFramework\IApi',
+ 'OCP\Config' => '8.0.0',
+ 'OCP\Contacts' => '8.1.0',
+ 'OCP\DB' => '8.1.0',
+ 'OCP\IHelper' => '8.1.0',
+ 'OCP\JSON' => '8.1.0',
+ 'OCP\Response' => '8.1.0',
+ 'OCP\AppFramework\IApi' => '8.0.0',
];
}