Skip to content

Commit a35a371

Browse files
committed
chore: Add proper deprecation dates where missing
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 063d4df commit a35a371

22 files changed

Lines changed: 45 additions & 45 deletions

File tree

lib/composer/composer/InstalledVersions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static function getRootPackage()
255255
/**
256256
* Returns the raw installed.php data for custom implementations
257257
*
258-
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
258+
* @deprecated 23.0.0 Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
259259
* @return array[]
260260
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
261261
*/

lib/private/AppConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ private function setAsLoaded(?bool $lazy): void {
12951295
* @param string $default = null, default value if the key does not exist
12961296
*
12971297
* @return string the value or $default
1298-
* @deprecated - use getValue*()
1298+
* @deprecated 29.0.0 use getValue*()
12991299
*
13001300
* This function gets a value from the appconfig table. If the key does
13011301
* not exist the default value will be returned
@@ -1316,7 +1316,7 @@ public function getValue($app, $key, $default = null) {
13161316
* @return bool True if the value was inserted or updated, false if the value was the same
13171317
* @throws AppConfigTypeConflictException
13181318
* @throws AppConfigUnknownKeyException
1319-
* @deprecated
1319+
* @deprecated 29.0.0
13201320
*/
13211321
public function setValue($app, $key, $value) {
13221322
/**
@@ -1422,7 +1422,7 @@ private function convertTypedValue(string $value, int $type): string|int|float|b
14221422
* @param string $app
14231423
*
14241424
* @return string[]
1425-
* @deprecated data sensitivity should be set when calling setValue*()
1425+
* @deprecated 29.0.0 data sensitivity should be set when calling setValue*()
14261426
*/
14271427
private function getSensitiveKeys(string $app): array {
14281428
$sensitiveValues = [
@@ -1533,7 +1533,7 @@ private function getSensitiveKeys(string $app): array {
15331533
* Clear all the cached app config values
15341534
* New cache will be generated next time a config value is retrieved
15351535
*
1536-
* @deprecated use {@see clearCache()}
1536+
* @deprecated 29.0.0 use {@see clearCache()}
15371537
*/
15381538
public function clearCachedConfig(): void {
15391539
$this->clearCache();

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ public function __construct(string $appName, array $urlParams = [], ?ServerConta
8787
$this->server->registerAppContainer($appName, $this);
8888

8989
// aliases
90-
/** @deprecated inject $appName */
90+
/** @deprecated 26.0.0 inject $appName */
9191
$this->registerAlias('AppName', 'appName');
92-
/** @deprecated inject $webRoot*/
92+
/** @deprecated 26.0.0 inject $webRoot*/
9393
$this->registerAlias('WebRoot', 'webRoot');
94-
/** @deprecated inject $userId */
94+
/** @deprecated 26.0.0 inject $userId */
9595
$this->registerAlias('UserId', 'userId');
9696

9797
/**
@@ -363,15 +363,15 @@ public function getAppName() {
363363
}
364364

365365
/**
366-
* @deprecated use IUserSession->isLoggedIn()
366+
* @deprecated 12.0.0 use IUserSession->isLoggedIn()
367367
* @return boolean
368368
*/
369369
public function isLoggedIn() {
370370
return \OC::$server->getUserSession()->isLoggedIn();
371371
}
372372

373373
/**
374-
* @deprecated use IGroupManager->isAdmin($userId)
374+
* @deprecated 12.0.0 use IGroupManager->isAdmin($userId)
375375
* @return boolean
376376
*/
377377
public function isAdminUser() {

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private function hashToken(string $token): string {
430430
}
431431

432432
/**
433-
* @deprecated Fallback for instances where the secret might not have been set by accident
433+
* @deprecated 26.0.0 Fallback for instances where the secret might not have been set by accident
434434
*/
435435
private function hashTokenWithEmptySecret(string $token): string {
436436
return hash('sha512', $token);

lib/private/Cache/CappedMemoryCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Uses a simple FIFO expiry mechanism
1616
* @template T
17-
* @deprecated use OCP\Cache\CappedMemoryCache instead
17+
* @deprecated 25.0.0 use OCP\Cache\CappedMemoryCache instead
1818
*/
1919
class CappedMemoryCache implements ICache, \ArrayAccess {
2020
private $capacity;

lib/private/DB/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function getQueryBuilder(): IQueryBuilder {
282282
* Gets the QueryBuilder for the connection.
283283
*
284284
* @return \Doctrine\DBAL\Query\QueryBuilder
285-
* @deprecated please use $this->getQueryBuilder() instead
285+
* @deprecated 8.0.0 please use $this->getQueryBuilder() instead
286286
*/
287287
public function createQueryBuilder() {
288288
$backtrace = $this->getCallerBacktrace();
@@ -295,7 +295,7 @@ public function createQueryBuilder() {
295295
* Gets the ExpressionBuilder for the connection.
296296
*
297297
* @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
298-
* @deprecated please use $this->getQueryBuilder()->expr() instead
298+
* @deprecated 8.0.0 please use $this->getQueryBuilder()->expr() instead
299299
*/
300300
public function getExpressionBuilder() {
301301
$backtrace = $this->getCallerBacktrace();

lib/private/Files/Cache/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ public function getPathById($id) {
11131113
*
11141114
* @param int $id
11151115
* @return array first element holding the storage id, second the path
1116-
* @deprecated use getPathById() instead
1116+
* @deprecated 17.0.0 use getPathById() instead
11171117
*/
11181118
public static function getById($id) {
11191119
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();

lib/private/Share20/Share.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public function getToken() {
530530
*
531531
* @param int $parent
532532
* @return IShare
533-
* @deprecated The new shares do not have parents. This is just here for legacy reasons.
533+
* @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
534534
*/
535535
public function setParent($parent) {
536536
$this->parent = $parent;
@@ -541,7 +541,7 @@ public function setParent($parent) {
541541
* Get the parent of this share.
542542
*
543543
* @return int
544-
* @deprecated The new shares do not have parents. This is just here for legacy reasons.
544+
* @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
545545
*/
546546
public function getParent() {
547547
return $this->parent;

lib/private/User/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function checkPasswordNoLogging($loginName, $password) {
260260
* @param int $limit
261261
* @param int $offset
262262
* @return IUser[]
263-
* @deprecated since 27.0.0, use searchDisplayName instead
263+
* @deprecated 27.0.0, use searchDisplayName instead
264264
*/
265265
public function search($pattern, $limit = null, $offset = null) {
266266
$users = [];

lib/private/legacy/OC_Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,15 @@ public static function uploadLimit() {
417417
/**
418418
* Checks if a function is available
419419
*
420-
* @deprecated Since 25.0.0 use \OCP\Util::isFunctionEnabled instead
420+
* @deprecated 25.0.0 use \OCP\Util::isFunctionEnabled instead
421421
*/
422422
public static function is_function_enabled(string $function_name): bool {
423423
return \OCP\Util::isFunctionEnabled($function_name);
424424
}
425425

426426
/**
427427
* Try to find a program
428-
* @deprecated Since 25.0.0 Use \OC\BinaryFinder directly
428+
* @deprecated 25.0.0 Use \OC\BinaryFinder directly
429429
*/
430430
public static function findBinaryPath(string $program): ?string {
431431
$result = \OCP\Server::get(IBinaryFinder::class)->findBinaryPath($program);

0 commit comments

Comments
 (0)