Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(psalm): Fix @throws annotations #48144

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down
2 changes: 1 addition & 1 deletion apps/workflowengine/lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Comments/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Encryption/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/Cache/ICache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Group/Backend/IBatchMethodsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, array{displayName?: string}>
* @since 28.0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Search/FilterDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading