aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-18 23:51:06 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-09-20 00:46:03 +0200
commita8f46af20f4fccac0257eba950e70d0da96c4a5a (patch)
treeb3922576860114dac6747ed7fc98ab4360864b2d /lib
parente7f8ab1c3b7bdbc6f34a62e5b5bbaa2f903f467b (diff)
downloadnextcloud-server-a8f46af20f4fccac0257eba950e70d0da96c4a5a.tar.gz
nextcloud-server-a8f46af20f4fccac0257eba950e70d0da96c4a5a.zip
chore: Add proper deprecation dates where missing
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/composer/composer/InstalledVersions.php2
-rw-r--r--lib/private/AppConfig.php8
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php10
-rw-r--r--lib/private/Authentication/Token/PublicKeyTokenProvider.php2
-rw-r--r--lib/private/Cache/CappedMemoryCache.php2
-rw-r--r--lib/private/DB/Connection.php4
-rw-r--r--lib/private/Files/Cache/Cache.php2
-rw-r--r--lib/private/Share20/Share.php4
-rw-r--r--lib/private/User/Manager.php2
-rw-r--r--lib/private/legacy/OC_Helper.php4
-rw-r--r--lib/private/legacy/OC_JSON.php14
-rw-r--r--lib/private/legacy/OC_User.php6
-rw-r--r--lib/private/legacy/OC_Util.php2
-rw-r--r--lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php2
-rw-r--r--lib/public/BackgroundJob/IJob.php4
-rw-r--r--lib/public/BackgroundJob/Job.php2
-rw-r--r--lib/public/BackgroundJob/QueuedJob.php2
-rw-r--r--lib/public/BackgroundJob/TimedJob.php2
-rw-r--r--lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php2
-rw-r--r--lib/public/GroupInterface.php2
-rw-r--r--lib/public/Share_Backend.php2
-rw-r--r--lib/public/Support/CrashReport/IRegistry.php10
22 files changed, 45 insertions, 45 deletions
diff --git a/lib/composer/composer/InstalledVersions.php b/lib/composer/composer/InstalledVersions.php
index 51e734a774b..cee8310f347 100644
--- a/lib/composer/composer/InstalledVersions.php
+++ b/lib/composer/composer/InstalledVersions.php
@@ -255,7 +255,7 @@ class InstalledVersions
/**
* Returns the raw installed.php data for custom implementations
*
- * @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.
+ * @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.
* @return array[]
* @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[]}>}
*/
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index 828d83bc67a..bd574d4335c 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -1295,7 +1295,7 @@ class AppConfig implements IAppConfig {
* @param string $default = null, default value if the key does not exist
*
* @return string the value or $default
- * @deprecated - use getValue*()
+ * @deprecated 29.0.0 use getValue*()
*
* This function gets a value from the appconfig table. If the key does
* not exist the default value will be returned
@@ -1316,7 +1316,7 @@ class AppConfig implements IAppConfig {
* @return bool True if the value was inserted or updated, false if the value was the same
* @throws AppConfigTypeConflictException
* @throws AppConfigUnknownKeyException
- * @deprecated
+ * @deprecated 29.0.0
*/
public function setValue($app, $key, $value) {
/**
@@ -1422,7 +1422,7 @@ class AppConfig implements IAppConfig {
* @param string $app
*
* @return string[]
- * @deprecated data sensitivity should be set when calling setValue*()
+ * @deprecated 29.0.0 data sensitivity should be set when calling setValue*()
*/
private function getSensitiveKeys(string $app): array {
$sensitiveValues = [
@@ -1533,7 +1533,7 @@ class AppConfig implements IAppConfig {
* Clear all the cached app config values
* New cache will be generated next time a config value is retrieved
*
- * @deprecated use {@see clearCache()}
+ * @deprecated 29.0.0 use {@see clearCache()}
*/
public function clearCachedConfig(): void {
$this->clearCache();
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 0b87fea127e..a6a3aec9489 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -86,11 +86,11 @@ class DIContainer extends SimpleContainer implements IAppContainer {
$this->server->registerAppContainer($appName, $this);
// aliases
- /** @deprecated inject $appName */
+ /** @deprecated 26.0.0 inject $appName */
$this->registerAlias('AppName', 'appName');
- /** @deprecated inject $webRoot*/
+ /** @deprecated 26.0.0 inject $webRoot*/
$this->registerAlias('WebRoot', 'webRoot');
- /** @deprecated inject $userId */
+ /** @deprecated 26.0.0 inject $userId */
$this->registerAlias('UserId', 'userId');
/**
@@ -359,7 +359,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
}
/**
- * @deprecated use IUserSession->isLoggedIn()
+ * @deprecated 12.0.0 use IUserSession->isLoggedIn()
* @return boolean
*/
public function isLoggedIn() {
@@ -367,7 +367,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
}
/**
- * @deprecated use IGroupManager->isAdmin($userId)
+ * @deprecated 12.0.0 use IGroupManager->isAdmin($userId)
* @return boolean
*/
public function isAdminUser() {
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index 4eddd5c80f7..12c3a1d535b 100644
--- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php
+++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
@@ -430,7 +430,7 @@ class PublicKeyTokenProvider implements IProvider {
}
/**
- * @deprecated Fallback for instances where the secret might not have been set by accident
+ * @deprecated 26.0.0 Fallback for instances where the secret might not have been set by accident
*/
private function hashTokenWithEmptySecret(string $token): string {
return hash('sha512', $token);
diff --git a/lib/private/Cache/CappedMemoryCache.php b/lib/private/Cache/CappedMemoryCache.php
index 2c2eab3209a..999ed8a7a74 100644
--- a/lib/private/Cache/CappedMemoryCache.php
+++ b/lib/private/Cache/CappedMemoryCache.php
@@ -14,7 +14,7 @@ use OCP\ICache;
*
* Uses a simple FIFO expiry mechanism
* @template T
- * @deprecated use OCP\Cache\CappedMemoryCache instead
+ * @deprecated 25.0.0 use OCP\Cache\CappedMemoryCache instead
*/
class CappedMemoryCache implements ICache, \ArrayAccess {
private $capacity;
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 55e61a7be14..1b61cc83319 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -282,7 +282,7 @@ class Connection extends PrimaryReadReplicaConnection {
* Gets the QueryBuilder for the connection.
*
* @return \Doctrine\DBAL\Query\QueryBuilder
- * @deprecated please use $this->getQueryBuilder() instead
+ * @deprecated 8.0.0 please use $this->getQueryBuilder() instead
*/
public function createQueryBuilder() {
$backtrace = $this->getCallerBacktrace();
@@ -295,7 +295,7 @@ class Connection extends PrimaryReadReplicaConnection {
* Gets the ExpressionBuilder for the connection.
*
* @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
- * @deprecated please use $this->getQueryBuilder()->expr() instead
+ * @deprecated 8.0.0 please use $this->getQueryBuilder()->expr() instead
*/
public function getExpressionBuilder() {
$backtrace = $this->getCallerBacktrace();
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index de66e8924a5..9a6f7d41faa 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -1113,7 +1113,7 @@ class Cache implements ICache {
*
* @param int $id
* @return array first element holding the storage id, second the path
- * @deprecated use getPathById() instead
+ * @deprecated 17.0.0 use getPathById() instead
*/
public static function getById($id) {
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index 1c0b21b8038..c1c13c77fa4 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -530,7 +530,7 @@ class Share implements IShare {
*
* @param int $parent
* @return IShare
- * @deprecated The new shares do not have parents. This is just here for legacy reasons.
+ * @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
*/
public function setParent($parent) {
$this->parent = $parent;
@@ -541,7 +541,7 @@ class Share implements IShare {
* Get the parent of this share.
*
* @return int
- * @deprecated The new shares do not have parents. This is just here for legacy reasons.
+ * @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
*/
public function getParent() {
return $this->parent;
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php
index 925d0e53921..e21759b1e98 100644
--- a/lib/private/User/Manager.php
+++ b/lib/private/User/Manager.php
@@ -260,7 +260,7 @@ class Manager extends PublicEmitter implements IUserManager {
* @param int $limit
* @param int $offset
* @return IUser[]
- * @deprecated since 27.0.0, use searchDisplayName instead
+ * @deprecated 27.0.0, use searchDisplayName instead
*/
public function search($pattern, $limit = null, $offset = null) {
$users = [];
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 0e55eff8f8c..087ea3ef88b 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -417,7 +417,7 @@ class OC_Helper {
/**
* Checks if a function is available
*
- * @deprecated Since 25.0.0 use \OCP\Util::isFunctionEnabled instead
+ * @deprecated 25.0.0 use \OCP\Util::isFunctionEnabled instead
*/
public static function is_function_enabled(string $function_name): bool {
return \OCP\Util::isFunctionEnabled($function_name);
@@ -425,7 +425,7 @@ class OC_Helper {
/**
* Try to find a program
- * @deprecated Since 25.0.0 Use \OC\BinaryFinder directly
+ * @deprecated 25.0.0 Use \OC\BinaryFinder directly
*/
public static function findBinaryPath(string $program): ?string {
$result = \OCP\Server::get(IBinaryFinder::class)->findBinaryPath($program);
diff --git a/lib/private/legacy/OC_JSON.php b/lib/private/legacy/OC_JSON.php
index e510595a3cb..d2b85951123 100644
--- a/lib/private/legacy/OC_JSON.php
+++ b/lib/private/legacy/OC_JSON.php
@@ -12,7 +12,7 @@ class OC_JSON {
/**
* Check if the app is enabled, send json error msg if not
* @param string $app
- * @deprecated Use the AppFramework instead. It will automatically check if the app is enabled.
+ * @deprecated 12.0.0 Use the AppFramework instead. It will automatically check if the app is enabled.
* @suppress PhanDeprecatedFunction
*/
public static function checkAppEnabled($app) {
@@ -25,7 +25,7 @@ class OC_JSON {
/**
* Check if the user is logged in, send json error msg if not
- * @deprecated Use annotation based ACLs from the AppFramework instead
+ * @deprecated 12.0.0 Use annotation based ACLs from the AppFramework instead
* @suppress PhanDeprecatedFunction
*/
public static function checkLoggedIn() {
@@ -41,7 +41,7 @@ class OC_JSON {
/**
* Check an ajax get/post call if the request token is valid, send json error msg if not.
- * @deprecated Use annotation based CSRF checks from the AppFramework instead
+ * @deprecated 12.0.0 Use annotation based CSRF checks from the AppFramework instead
* @suppress PhanDeprecatedFunction
*/
public static function callCheck() {
@@ -59,7 +59,7 @@ class OC_JSON {
/**
* Check if the user is a admin, send json error msg if not.
- * @deprecated Use annotation based ACLs from the AppFramework instead
+ * @deprecated 12.0.0 Use annotation based ACLs from the AppFramework instead
* @suppress PhanDeprecatedFunction
*/
public static function checkAdminUser() {
@@ -72,7 +72,7 @@ class OC_JSON {
/**
* Send json error msg
- * @deprecated Use a AppFramework JSONResponse instead
+ * @deprecated 12.0.0 Use a AppFramework JSONResponse instead
* @suppress PhanDeprecatedFunction
* @psalm-taint-escape html
*/
@@ -84,7 +84,7 @@ class OC_JSON {
/**
* Send json success msg
- * @deprecated Use a AppFramework JSONResponse instead
+ * @deprecated 12.0.0 Use a AppFramework JSONResponse instead
* @suppress PhanDeprecatedFunction
* @psalm-taint-escape html
*/
@@ -96,7 +96,7 @@ class OC_JSON {
/**
* Encode JSON
- * @deprecated Use a AppFramework JSONResponse instead
+ * @deprecated 12.0.0 Use a AppFramework JSONResponse instead
*/
private static function encode($data) {
return json_encode($data, JSON_HEX_TAG);
diff --git a/lib/private/legacy/OC_User.php b/lib/private/legacy/OC_User.php
index b8a00de84cc..8fdba3a62b2 100644
--- a/lib/private/legacy/OC_User.php
+++ b/lib/private/legacy/OC_User.php
@@ -251,7 +251,7 @@ class OC_User {
/**
* Check if the user is logged in, considers also the HTTP basic credentials
*
- * @deprecated use \OC::$server->getUserSession()->isLoggedIn()
+ * @deprecated 12.0.0 use \OC::$server->getUserSession()->isLoggedIn()
* @return bool
*/
public static function isLoggedIn() {
@@ -353,7 +353,7 @@ class OC_User {
* @return string
*
* returns the path to the users home directory
- * @deprecated Use \OC::$server->getUserManager->getHome()
+ * @deprecated 12.0.0 Use \OC::$server->getUserManager->getHome()
*/
public static function getHome($uid) {
$user = \OC::$server->getUserManager()->get($uid);
@@ -373,7 +373,7 @@ class OC_User {
* @return array associative array with all display names (value) and corresponding uids (key)
*
* Get a list of all display names and user ids.
- * @deprecated Use \OC::$server->getUserManager->searchDisplayName($search, $limit, $offset) instead.
+ * @deprecated 12.0.0 Use \OC::$server->getUserManager->searchDisplayName($search, $limit, $offset) instead.
*/
public static function getDisplayNames($search = '', $limit = null, $offset = null) {
$displayNames = [];
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index a6478ae11f8..c390b7727e9 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -236,7 +236,7 @@ class OC_Util {
}
/**
- * @deprecated the value is of no use anymore
+ * @deprecated 11.0.0 the value is of no use anymore
* @return string
*/
public static function getEditionString() {
diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
index 584191b9aaa..b8bbfdb7d67 100644
--- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
+++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
@@ -106,7 +106,7 @@ class EmptyContentSecurityPolicy {
* @param bool $state
* @return $this
* @since 8.1.0
- * @deprecated Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
+ * @deprecated 17.0.0 Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
*/
public function allowEvalScript($state = true) {
$this->evalScriptAllowed = $state;
diff --git a/lib/public/BackgroundJob/IJob.php b/lib/public/BackgroundJob/IJob.php
index 6988e1e682a..28a7df1c377 100644
--- a/lib/public/BackgroundJob/IJob.php
+++ b/lib/public/BackgroundJob/IJob.php
@@ -10,7 +10,7 @@ namespace OCP\BackgroundJob;
use OCP\ILogger;
/**
- * This interface represend a backgroud job run with cron
+ * This interface represents a background job run with cron
*
* To implement a background job, you must extend either \OCP\BackgroundJob\Job,
* \OCP\BackgroundJob\TimedJob or \OCP\BackgroundJob\QueuedJob
@@ -33,7 +33,7 @@ interface IJob {
* @param IJobList $jobList The job list that manages the state of this job
* @param ILogger|null $logger
* @since 7.0.0
- * @deprecated since 25.0.0 Use start() instead. This method will be removed
+ * @deprecated 25.0.0 Use start() instead. This method will be removed
* with the ILogger interface
*/
public function execute(IJobList $jobList, ?ILogger $logger = null);
diff --git a/lib/public/BackgroundJob/Job.php b/lib/public/BackgroundJob/Job.php
index 3b25db311a4..2483387a9c9 100644
--- a/lib/public/BackgroundJob/Job.php
+++ b/lib/public/BackgroundJob/Job.php
@@ -39,7 +39,7 @@ abstract class Job implements IJob, IParallelAwareJob {
* @return void
*
* @since 15.0.0
- * @deprecated since 25.0.0 Use start() instead. This method will be removed
+ * @deprecated 25.0.0 Use start() instead. This method will be removed
* with the ILogger interface
*/
public function execute(IJobList $jobList, ?ILogger $logger = null) {
diff --git a/lib/public/BackgroundJob/QueuedJob.php b/lib/public/BackgroundJob/QueuedJob.php
index caacff42b1a..75e27d1d60f 100644
--- a/lib/public/BackgroundJob/QueuedJob.php
+++ b/lib/public/BackgroundJob/QueuedJob.php
@@ -22,7 +22,7 @@ abstract class QueuedJob extends Job {
* @param ILogger|null $logger
*
* @since 15.0.0
- * @deprecated since 25.0.0 Use start() instead. This method will be removed
+ * @deprecated 25.0.0 Use start() instead. This method will be removed
* with the ILogger interface
*/
final public function execute($jobList, ?ILogger $logger = null) {
diff --git a/lib/public/BackgroundJob/TimedJob.php b/lib/public/BackgroundJob/TimedJob.php
index 6665d194789..bec3f21fe16 100644
--- a/lib/public/BackgroundJob/TimedJob.php
+++ b/lib/public/BackgroundJob/TimedJob.php
@@ -67,7 +67,7 @@ abstract class TimedJob extends Job {
* @param ILogger|null $logger
*
* @since 15.0.0
- * @deprecated since 25.0.0 Use start() instead
+ * @deprecated 25.0.0 Use start() instead
*/
final public function execute(IJobList $jobList, ?ILogger $logger = null) {
$this->start($jobList);
diff --git a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
index 7151f05aef3..1a225178310 100644
--- a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
+++ b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
@@ -12,7 +12,7 @@ use OCP\EventDispatcher\GenericEvent;
/**
* @since 16.0.0
- * @deprecated Use {@see AutoCompleteFilterEvent} instead
+ * @deprecated 28.0.0 Use {@see AutoCompleteFilterEvent} instead
*/
class AutoCompleteEvent extends GenericEvent {
/**
diff --git a/lib/public/GroupInterface.php b/lib/public/GroupInterface.php
index 9329fe4a454..a6c01fa1d11 100644
--- a/lib/public/GroupInterface.php
+++ b/lib/public/GroupInterface.php
@@ -35,7 +35,7 @@ interface GroupInterface {
/**
* @since 12.0.0
- * @deprecated 29.0.0
+ * @deprecated 29.0.0
*/
public const REMOVE_FROM_GOUP = 0x00001000; // oops
diff --git a/lib/public/Share_Backend.php b/lib/public/Share_Backend.php
index b77731ccdfd..794d72b7873 100644
--- a/lib/public/Share_Backend.php
+++ b/lib/public/Share_Backend.php
@@ -30,7 +30,7 @@ interface Share_Backend {
* Get a unique name of the item for the specified user
* @param string $itemSource
* @param string|false $shareWith User the item is being shared with
- * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7
+ * @param array|null $exclude List of similar item names already existing as shared items @deprecated 7.0.0
* @return string Target name
*
* This function needs to verify that the user does not already have an item with this name.
diff --git a/lib/public/Support/CrashReport/IRegistry.php b/lib/public/Support/CrashReport/IRegistry.php
index 9da4f24aaa3..503a21038ca 100644
--- a/lib/public/Support/CrashReport/IRegistry.php
+++ b/lib/public/Support/CrashReport/IRegistry.php
@@ -14,7 +14,7 @@ use Throwable;
/**
* @since 13.0.0
- * @deprecated used internally only
+ * @deprecated 20.0.0 used internally only
*/
interface IRegistry {
/**
@@ -35,7 +35,7 @@ interface IRegistry {
* @param string $category
* @param array $context
*
- * @deprecated used internally only
+ * @deprecated 20.0.0 used internally only
* @since 15.0.0
*/
public function delegateBreadcrumb(string $message, string $category, array $context = []): void;
@@ -46,7 +46,7 @@ interface IRegistry {
* @param Exception|Throwable $exception
* @param array $context
*
- * @deprecated used internally only
+ * @deprecated 20.0.0 used internally only
* @since 13.0.0
*/
public function delegateReport($exception, array $context = []);
@@ -59,7 +59,7 @@ interface IRegistry {
*
* @return void
*
- * @deprecated used internally only
+ * @deprecated 20.0.0 used internally only
* @since 17.0.0
*/
public function delegateMessage(string $message, array $context = []): void;
@@ -68,7 +68,7 @@ interface IRegistry {
* Check if any reporter has been registered to delegate to
*
* @return bool
- * @deprecated use internally only
+ * @deprecated 20.0.0 use internally only
* @since 26.0.0
*/
public function hasReporters(): bool;