aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption/File.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-03 11:15:24 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-05-12 15:06:18 +0200
commitec6b83cc1891214c7fa3a236626807b4335f9a2f (patch)
treeb5f12993172528ddec15b7b8ae6a09a0080fedd7 /lib/private/Encryption/File.php
parent5a0b28d603e142051967175f023b698ff7e262db (diff)
downloadnextcloud-server-ec6b83cc1891214c7fa3a236626807b4335f9a2f.tar.gz
nextcloud-server-ec6b83cc1891214c7fa3a236626807b4335f9a2f.zip
Add stricter psalm type for CappedMemoryCache
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Encryption/File.php')
-rw-r--r--lib/private/Encryption/File.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Encryption/File.php b/lib/private/Encryption/File.php
index 2c486dfade6..2d7e23a8883 100644
--- a/lib/private/Encryption/File.php
+++ b/lib/private/Encryption/File.php
@@ -47,9 +47,9 @@ class File implements \OCP\Encryption\IFile {
/**
* cache results of already checked folders
*
- * @var array
+ * @var CappedMemoryCache<array>
*/
- protected $cache;
+ protected CappedMemoryCache $cache;
public function __construct(Util $util,
IRootFolder $rootFolder,
@@ -62,10 +62,10 @@ class File implements \OCP\Encryption\IFile {
/**
- * get list of users with access to the file
+ * Get list of users with access to the file
*
* @param string $path to the file
- * @return array ['users' => $uniqueUserIds, 'public' => $public]
+ * @return array{users: string[], public: bool}
*/
public function getAccessList($path) {