From c7b05c119406e20e8b5c63a7d16888f8e42f6d00 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 3 Aug 2023 22:15:27 -0700 Subject: [PATCH] image: improve typing Signed-off-by: Varun Patil --- lib/Controller/ImageController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index c90c61ee..a131b0ed 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -235,13 +235,13 @@ class ImageController extends GenericApiController * * Set the exif data for a file. * - * @param string fileid + * @param int fileid * @param array raw exif data */ - public function setExif(string $id, array $raw): Http\Response + public function setExif(int $id, array $raw): Http\Response { return Util::guardEx(function () use ($id, $raw) { - $file = $this->fs->getUserFile((int) $id); + $file = $this->fs->getUserFile($id); // Check if user has permissions if (!$file->isUpdateable() || Util::isEncryptionEnabled()) {