From c2fb7a72da05a8df976d182ead6a18dc93d6abd8 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 17 Sep 2024 17:18:30 +0200 Subject: fix(psalm): Fix @throws annotations Signed-off-by: provokateurin --- lib/private/Comments/Comment.php | 2 +- lib/private/Encryption/Update.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private') diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index c67358cc854..ac022cd4c3c 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -297,7 +297,7 @@ class Comment implements 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 87036403b8e..6fee1afbe5c 100644 --- a/lib/private/Encryption/Update.php +++ b/lib/private/Encryption/Update.php @@ -129,7 +129,7 @@ class Update { * * @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); -- cgit v1.2.3