diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index dcf2e6f62e12c..b57cae72436c2 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -369,7 +369,7 @@ private function processLDAPError($resource, string $functionName, int $errorCod /** * Called after an ldap method is run to act on LDAP error if necessary - * @throw \Exception + * @throws \Exception */ private function postFunctionCall(string $functionName): void { if ($this->isResource($this->curArgs[0])) { diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index fdde06bdbd630..b51e85bdea785 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -264,7 +264,7 @@ protected function insertOperation( * @param string $operation * @return array The added operation * @throws \UnexpectedValueException - * @throw Exception + * @throws Exception */ public function addOperation( string $class, diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index c67358cc854a0..ac022cd4c3c4a 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -297,7 +297,7 @@ public function setActor($actorType, $actorId): IComment { * * If not explicitly set, it shall default to the time of initialization. * @since 9.0.0 - * @throw \LogicException if creation date time is not set yet + * @throws \LogicException if creation date time is not set yet */ public function getCreationDateTime(): \DateTime { if (!isset($this->data['creationDT'])) { diff --git a/lib/private/Encryption/Update.php b/lib/private/Encryption/Update.php index 87036403b8e12..6fee1afbe5c56 100644 --- a/lib/private/Encryption/Update.php +++ b/lib/private/Encryption/Update.php @@ -129,7 +129,7 @@ public function postRename($params) { * * @param string $path path to file for current user * @return array ['owner' => $owner, 'path' => $path] - * @throw \InvalidArgumentException + * @throws \InvalidArgumentException */ protected function getOwnerPath($path) { $info = Filesystem::getFileInfo($path); diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php index bb5608e8480e6..cd610b155454b 100644 --- a/lib/public/Files/Cache/ICache.php +++ b/lib/public/Files/Cache/ICache.php @@ -231,7 +231,7 @@ public function searchByMime($mimetype); * * @param ISearchQuery $query * @return ICacheEntry[] - * @throw \InvalidArgumentException if the cache is unable to perform the query + * @throws \InvalidArgumentException if the cache is unable to perform the query * @since 12.0.0 */ public function searchQuery(ISearchQuery $query); diff --git a/lib/public/Group/Backend/IBatchMethodsBackend.php b/lib/public/Group/Backend/IBatchMethodsBackend.php index 745b76aac506b..5853447d5e9f4 100644 --- a/lib/public/Group/Backend/IBatchMethodsBackend.php +++ b/lib/public/Group/Backend/IBatchMethodsBackend.php @@ -33,7 +33,7 @@ public function groupsExists(array $gids): array; * a loop. But a GroupBackend implementation should override this method * to provide a more optimized way to execute this operation. * - * @throw \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend + * @throws \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend * * @return array * @since 28.0.0 diff --git a/lib/public/Search/FilterDefinition.php b/lib/public/Search/FilterDefinition.php index 1f43222752d35..86b2bb655fff6 100644 --- a/lib/public/Search/FilterDefinition.php +++ b/lib/public/Search/FilterDefinition.php @@ -67,7 +67,7 @@ class FilterDefinition { * * @param self::TYPE_* $type * @param bool $exclusive If true, all providers not supporting this filter will be ignored when this filter is provided - * @throw InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z. + * @throws InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z. * @since 28.0.0 */ public function __construct(