Skip to content

Commit

Permalink
Fix avatar file return type
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Mar 3, 2022
1 parent ae8a470 commit 3559b36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/public/IAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 3559b36

Please sign in to comment.