Skip to content

Commit 9fde931

Browse files
committed
type hint fixes
Signed-off-by: Robin Appelman <[email protected]>
1 parent 0c2107a commit 9fde931

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/files_sharing/lib/SharedStorage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
use OC\Files\Storage\Wrapper\PermissionsMask;
4141
use OC\User\NoUserException;
4242
use OCP\Constants;
43+
use OCP\Files\Cache\ICache;
4344
use OCP\Files\Cache\ICacheEntry;
4445
use OCP\Files\NotFoundException;
4546
use OCP\Files\Storage\IDisableEncryptionStorage;
@@ -370,8 +371,8 @@ public function getItemType() {
370371

371372
/**
372373
* @param string $path
373-
* @param null $storage
374-
* @return Cache
374+
* @param IStorage|null $storage
375+
* @return ICache
375376
*/
376377
public function getCache($path = '', $storage = null) {
377378
if ($this->cache) {

lib/public/Files/Storage/IStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public function getOwner($path);
434434

435435
/**
436436
* @param string $path
437-
* @param IStorage $storage
437+
* @param IStorage|null $storage
438438
* @return ICache
439439
* @since 9.0.0
440440
*/

0 commit comments

Comments
 (0)