From 3559b36976e23bcca0bb7714fc935e83322476b2 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 3 Mar 2022 04:41:34 +0000 Subject: [PATCH] Fix avatar file return type Signed-off-by: Christopher Ng --- lib/public/IAvatar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/public/IAvatar.php b/lib/public/IAvatar.php index 1f079ba1e034b..c1826bc8647a6 100644 --- a/lib/public/IAvatar.php +++ b/lib/public/IAvatar.php @@ -26,8 +26,9 @@ */ namespace OCP; -use OCP\Files\File; use OCP\Files\NotFoundException; +use OCP\Files\SimpleFS\InMemoryFile; +use OCP\Files\SimpleFS\ISimpleFile; /** * This class provides avatar functionality @@ -80,7 +81,7 @@ public function remove(); /** * Get the file of the avatar * @param int $size -1 can be used to not scale the image - * @return File + * @return ISimpleFile|InMemoryFile * @throws NotFoundException * @since 9.0.0 */