diff options
Diffstat (limited to 'lib/Share')
-rw-r--r-- | lib/Share/RoomShareProvider.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 229a23267..653083d96 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -28,7 +28,7 @@ declare(strict_types=1); namespace OCA\Talk\Share; -use OC\Cache\CappedMemoryCache; +use OCP\Cache\CappedMemoryCache; use OC\Files\Cache\Cache; use OCA\Talk\Events\AlreadySharedEvent; use OCA\Talk\Events\RoomEvent; @@ -84,7 +84,7 @@ class RoomShareProvider implements IShareProvider { private IL10N $l; private IMimeTypeLoader $mimeTypeLoader; - private $sharesByIdCache; + private CappedMemoryCache $sharesByIdCache; public function __construct( IDBConnection $connection, @@ -684,7 +684,7 @@ class RoomShareProvider implements IShareProvider { * @return IShare[] * @throws ShareNotFound */ - public function getSharesByIds($ids, $recipientId = null): array { + public function getSharesByIds(array $ids, ?string $recipientId = null): array { $qb = $this->dbConnection->getQueryBuilder(); $qb->select('s.*', |