diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-11-23 15:41:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 15:41:20 +0100 |
commit | fd487c1a43874bf7eaeebe2ff822e18978b6d1e1 (patch) | |
tree | a69c74aa76577beac40700eaf47d28b5e8bd1af9 /lib/private/Files/Cache/CacheEntry.php | |
parent | 20dd46fcaed56b7df151fe1a5273cdadc22a583e (diff) | |
parent | 18a91f02fadf108bfa1a60f258ebacd2f802224b (diff) | |
download | nextcloud-server-fd487c1a43874bf7eaeebe2ff822e18978b6d1e1.tar.gz nextcloud-server-fd487c1a43874bf7eaeebe2ff822e18978b6d1e1.zip |
Merge pull request #29432 from nextcloud/fix/support-php-8.1
Support PHP 8.1 - First batch
Diffstat (limited to 'lib/private/Files/Cache/CacheEntry.php')
-rw-r--r-- | lib/private/Files/Cache/CacheEntry.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php index 156f075c2d0..12f0273fb6e 100644 --- a/lib/private/Files/Cache/CacheEntry.php +++ b/lib/private/Files/Cache/CacheEntry.php @@ -37,18 +37,22 @@ class CacheEntry implements ICacheEntry { $this->data = $data; } - public function offsetSet($offset, $value) { + public function offsetSet($offset, $value): void { $this->data[$offset] = $value; } - public function offsetExists($offset) { + public function offsetExists($offset): bool { return isset($this->data[$offset]); } - public function offsetUnset($offset) { + public function offsetUnset($offset): void { unset($this->data[$offset]); } + /** + * @return mixed + */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { if (isset($this->data[$offset])) { return $this->data[$offset]; |