summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-02-05 18:08:26 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-06 10:24:41 +0100
commitf73f966c98fc4ac6ede61d745dc09373820793b2 (patch)
treed3aaa2a500be9279b89ac9910d47e016b1c749db /lib/public
parent52fd96d17c6d601db4815e322e5ac66bacd6e0b0 (diff)
downloadnextcloud-server-f73f966c98fc4ac6ede61d745dc09373820793b2.tar.gz
nextcloud-server-f73f966c98fc4ac6ede61d745dc09373820793b2.zip
chore: Add missing ArrayAccess template parameters
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Cache/CappedMemoryCache.php1
-rw-r--r--lib/public/Files/Cache/ICacheEntry.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/public/Cache/CappedMemoryCache.php b/lib/public/Cache/CappedMemoryCache.php
index 6699600d42c..c92f68044ba 100644
--- a/lib/public/Cache/CappedMemoryCache.php
+++ b/lib/public/Cache/CappedMemoryCache.php
@@ -30,6 +30,7 @@ use OCP\ICache;
*
* @since 25.0.0
* @template T
+ * @template-implements \ArrayAccess<string,T>
*/
class CappedMemoryCache implements ICache, \ArrayAccess {
private int $capacity;
diff --git a/lib/public/Files/Cache/ICacheEntry.php b/lib/public/Files/Cache/ICacheEntry.php
index 3a069ca69e0..6b83d31d55c 100644
--- a/lib/public/Files/Cache/ICacheEntry.php
+++ b/lib/public/Files/Cache/ICacheEntry.php
@@ -28,6 +28,7 @@ use ArrayAccess;
* meta data for a file or folder
*
* @since 9.0.0
+ * @template-extends ArrayAccess<string,mixed>
*
* This interface extends \ArrayAccess since v21.0.0, previous versions only
* implemented it in the private implementation. Hence php would allow using the