chore: Add missing ArrayAccess template parameters

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/43361/head
Côme Chilliet 10 months ago committed by Côme Chilliet
parent 52fd96d17c
commit f73f966c98
  1. 1
      lib/private/AppFramework/Http/Request.php
  2. 3
      lib/private/Files/FileInfo.php
  3. 3
      lib/private/Memcache/Cache.php
  4. 1
      lib/private/Memcache/ProfilerWrapperCache.php
  5. 1
      lib/private/Session/CryptoSessionData.php
  6. 3
      lib/private/Session/Session.php
  7. 1
      lib/public/Cache/CappedMemoryCache.php
  8. 1
      lib/public/Files/Cache/ICacheEntry.php

@ -63,6 +63,7 @@ use Symfony\Component\HttpFoundation\IpUtils;
* @property string method
* @property mixed[] parameters
* @property mixed[] server
* @template-implements \ArrayAccess<string,mixed>
*/
class Request implements \ArrayAccess, \Countable, IRequest {
public const USER_AGENT_IE = '/(MSIE)|(Trident)/';

@ -40,6 +40,9 @@ use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Mount\IMountPoint;
use OCP\IUser;
/**
* @template-implements \ArrayAccess<string,mixed>
*/
class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
private array|ICacheEntry $data;
/**

@ -24,6 +24,9 @@
*/
namespace OC\Memcache;
/**
* @template-implements \ArrayAccess<string,mixed>
*/
abstract class Cache implements \ArrayAccess, \OCP\ICache {
/**
* @var string $prefix

@ -32,6 +32,7 @@ use OCP\IMemcacheTTL;
/**
* Cache wrapper that logs profiling information
* @template-implements \ArrayAccess<string,mixed>
*/
class ProfilerWrapperCache extends AbstractDataCollector implements IMemcacheTTL, \ArrayAccess {
/** @var Redis $wrappedCache*/

@ -39,6 +39,7 @@ use function OCP\Log\logger;
* Class CryptoSessionData
*
* @package OC\Session
* @template-implements \ArrayAccess<string,mixed>
*/
class CryptoSessionData implements \ArrayAccess, ISession {
/** @var ISession */

@ -29,6 +29,9 @@ namespace OC\Session;
use OCP\ISession;
/**
* @template-implements \ArrayAccess<string,mixed>
*/
abstract class Session implements \ArrayAccess, ISession {
/**
* @var bool

@ -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;

@ -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

Loading…
Cancel
Save