Skip to content

Commit dc71cb7

Browse files
Merge pull request #48144 from nextcloud/fix/psalm/throws-annotations
2 parents f25acfb + c2fb7a7 commit dc71cb7

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

apps/user_ldap/lib/LDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private function processLDAPError($resource, string $functionName, int $errorCod
369369

370370
/**
371371
* Called after an ldap method is run to act on LDAP error if necessary
372-
* @throw \Exception
372+
* @throws \Exception
373373
*/
374374
private function postFunctionCall(string $functionName): void {
375375
if ($this->isResource($this->curArgs[0])) {

apps/workflowengine/lib/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected function insertOperation(
264264
* @param string $operation
265265
* @return array The added operation
266266
* @throws \UnexpectedValueException
267-
* @throw Exception
267+
* @throws Exception
268268
*/
269269
public function addOperation(
270270
string $class,

lib/private/Comments/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function setActor($actorType, $actorId): IComment {
297297
*
298298
* If not explicitly set, it shall default to the time of initialization.
299299
* @since 9.0.0
300-
* @throw \LogicException if creation date time is not set yet
300+
* @throws \LogicException if creation date time is not set yet
301301
*/
302302
public function getCreationDateTime(): \DateTime {
303303
if (!isset($this->data['creationDT'])) {

lib/private/Encryption/Update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function postRename($params) {
129129
*
130130
* @param string $path path to file for current user
131131
* @return array ['owner' => $owner, 'path' => $path]
132-
* @throw \InvalidArgumentException
132+
* @throws \InvalidArgumentException
133133
*/
134134
protected function getOwnerPath($path) {
135135
$info = Filesystem::getFileInfo($path);

lib/public/Files/Cache/ICache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function searchByMime($mimetype);
231231
*
232232
* @param ISearchQuery $query
233233
* @return ICacheEntry[]
234-
* @throw \InvalidArgumentException if the cache is unable to perform the query
234+
* @throws \InvalidArgumentException if the cache is unable to perform the query
235235
* @since 12.0.0
236236
*/
237237
public function searchQuery(ISearchQuery $query);

lib/public/Group/Backend/IBatchMethodsBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function groupsExists(array $gids): array;
3333
* a loop. But a GroupBackend implementation should override this method
3434
* to provide a more optimized way to execute this operation.
3535
*
36-
* @throw \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend
36+
* @throws \RuntimeException if called on a backend that doesn't implements IGroupDetailsBackend
3737
*
3838
* @return array<string, array{displayName?: string}>
3939
* @since 28.0.0

lib/public/Search/FilterDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class FilterDefinition {
6767
*
6868
* @param self::TYPE_* $type
6969
* @param bool $exclusive If true, all providers not supporting this filter will be ignored when this filter is provided
70-
* @throw InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z.
70+
* @throws InvalidArgumentException in case of invalid name. Allowed characters are -, 0-9, a-z.
7171
* @since 28.0.0
7272
*/
7373
public function __construct(

0 commit comments

Comments
 (0)