aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/FileInfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/FileInfo.php')
-rw-r--r--lib/private/Files/FileInfo.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php
index 8a8de6e4c19..2f361fc051d 100644
--- a/lib/private/Files/FileInfo.php
+++ b/lib/private/Files/FileInfo.php
@@ -104,18 +104,22 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
$this->rawSize = $this->data['size'] ?? 0;
}
- 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 ($offset === 'type') {
return $this->getType();