Skip to content

Commit

Permalink
Merge pull request #3243 from nextcloud/fix/psalm/throws-annotations
Browse files Browse the repository at this point in the history
fix(psalm): Fix @throws annotations
  • Loading branch information
come-nc authored Sep 18, 2024
2 parents 0ea6a8b + 5faa10b commit 2e9b803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Trash/TrashBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function listTrashFolder(ITrashItem $folder): array {

/**
* @return void
* @throw NotPermittedException
* @throws NotPermittedException
*/
public function restoreItem(ITrashItem $item) {
if (!($item instanceof GroupTrashItem)) {
Expand Down Expand Up @@ -164,8 +164,8 @@ public function restoreItem(ITrashItem $item) {

/**
* @return void
* @throw \LogicException
* @throw \Exception
* @throws \LogicException
* @throws \Exception
*/
public function removeItem(ITrashItem $item) {
if (!($item instanceof GroupTrashItem)) {
Expand Down

0 comments on commit 2e9b803

Please sign in to comment.