Fix typo in @deprecated PHPDoc tag

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-11-24 00:13:09 +01:00
parent d9e0efbf72
commit f4c1512bb7
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
4 changed files with 6 additions and 6 deletions

View File

@ -2283,7 +2283,7 @@ class Server extends ServerContainer implements IServerContainer {
try {
/** @var ILogger $logger */
$logger = $container->get(ILogger::class);
$logger->debug('The requested alias "' . $alias . '" is depreacted. Please request "' . $target . '" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
$logger->debug('The requested alias "' . $alias . '" is deprecated. Please request "' . $target . '" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
} catch (ContainerExceptionInterface $e) {
// Could not get logger. Continue
}

View File

@ -93,7 +93,7 @@ class SubAdmin extends PublicEmitter implements ISubAdmin {
])
->execute();
/** @depreacted 21.0.0 - use type SubAdminAddedEvent instead */
/** @deprecated 21.0.0 - use type SubAdminAddedEvent instead */
$this->emit('\OC\SubAdmin', 'postCreateSubAdmin', [$user, $group]);
$event = new SubAdminAddedEvent($group, $user);
$this->eventDispatcher->dispatchTyped($event);
@ -112,7 +112,7 @@ class SubAdmin extends PublicEmitter implements ISubAdmin {
->andWhere($qb->expr()->eq('uid', $qb->createNamedParameter($user->getUID())))
->execute();
/** @depreacted 21.0.0 - use type SubAdminRemovedEvent instead */
/** @deprecated 21.0.0 - use type SubAdminRemovedEvent instead */
$this->emit('\OC\SubAdmin', 'postDeleteSubAdmin', [$user, $group]);
$event = new SubAdminRemovedEvent($group, $user);
$this->eventDispatcher->dispatchTyped($event);

View File

@ -55,7 +55,7 @@ class OC_DB {
* @param bool|null $isManipulation
* @throws \OC\DatabaseException
* @return OC_DB_StatementWrapper prepared SQL query
* @depreacted 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
* @deprecated 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
*
* SQL query via Doctrine prepare(), needs to be execute()'d!
*/
@ -117,7 +117,7 @@ class OC_DB {
* @param array $parameters
* @return OC_DB_StatementWrapper
* @throws \OC\DatabaseException
* @depreacted 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
* @deprecated 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
*/
public static function executeAudited($stmt, array $parameters = []) {
if (is_string($stmt)) {

View File

@ -46,7 +46,7 @@ interface IManager {
public const MAX_OPERATION_VALUE_BYTES = 4096;
/**
* @depreacted Will be removed in NC19. Use the dedicated events in OCP\WorkflowEngine\Events
* @deprecated Will be removed in NC19. Use the dedicated events in OCP\WorkflowEngine\Events
*/
public const EVENT_NAME_REG_OPERATION = 'OCP\WorkflowEngine::registerOperations';
public const EVENT_NAME_REG_ENTITY = 'OCP\WorkflowEngine::registerEntities';