diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/AppConfig.php | 8 | ||||
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 10 | ||||
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 2 | ||||
-rw-r--r-- | lib/private/Cache/CappedMemoryCache.php | 2 | ||||
-rw-r--r-- | lib/private/DB/Connection.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 | ||||
-rw-r--r-- | lib/private/Share20/Share.php | 4 | ||||
-rw-r--r-- | lib/private/User/Manager.php | 2 | ||||
-rw-r--r-- | lib/private/legacy/OC_Helper.php | 4 | ||||
-rw-r--r-- | lib/private/legacy/OC_JSON.php | 14 | ||||
-rw-r--r-- | lib/private/legacy/OC_User.php | 6 | ||||
-rw-r--r-- | lib/private/legacy/OC_Util.php | 2 |
12 files changed, 30 insertions, 30 deletions
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() { |