From 9fde9310a9110909d5c3ec9dc3d014653a12371f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 1 Feb 2021 16:52:27 +0100 Subject: [PATCH] type hint fixes Signed-off-by: Robin Appelman --- apps/files_sharing/lib/SharedStorage.php | 5 +++-- lib/public/Files/Storage/IStorage.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 221d022bb1e37..97e4a01e2848e 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -40,6 +40,7 @@ use OC\Files\Storage\Wrapper\PermissionsMask; use OC\User\NoUserException; use OCP\Constants; +use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; use OCP\Files\NotFoundException; use OCP\Files\Storage\IDisableEncryptionStorage; @@ -370,8 +371,8 @@ public function getItemType() { /** * @param string $path - * @param null $storage - * @return Cache + * @param IStorage|null $storage + * @return ICache */ public function getCache($path = '', $storage = null) { if ($this->cache) { diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php index 09e2b458c2fa4..ee26dd9c66bb4 100644 --- a/lib/public/Files/Storage/IStorage.php +++ b/lib/public/Files/Storage/IStorage.php @@ -434,7 +434,7 @@ public function getOwner($path); /** * @param string $path - * @param IStorage $storage + * @param IStorage|null $storage * @return ICache * @since 9.0.0 */