aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/EventDispatcher/GenericEventWrapper.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-19 17:11:53 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:28:56 +0100
commit113756db30fcbffe9e90b54c29e78dee0676109f (patch)
tree8eeaad5ea33957cd2c9ef37dbb05c5e779c48216 /lib/private/EventDispatcher/GenericEventWrapper.php
parent129de6079e53e0ac9dbf9d7c25ec1670ae0ff572 (diff)
downloadnextcloud-server-113756db30fcbffe9e90b54c29e78dee0676109f.tar.gz
nextcloud-server-113756db30fcbffe9e90b54c29e78dee0676109f.zip
Fix ArrayAccess and JsonSerializable return types
First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/EventDispatcher/GenericEventWrapper.php')
-rw-r--r--lib/private/EventDispatcher/GenericEventWrapper.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/private/EventDispatcher/GenericEventWrapper.php b/lib/private/EventDispatcher/GenericEventWrapper.php
index 55e23d2ff7f..3574bc8bb83 100644
--- a/lib/private/EventDispatcher/GenericEventWrapper.php
+++ b/lib/private/EventDispatcher/GenericEventWrapper.php
@@ -100,19 +100,23 @@ class GenericEventWrapper extends GenericEvent {
return $this->event->hasArgument($key);
}
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
public function offsetGet($key) {
return $this->event->offsetGet($key);
}
- public function offsetSet($key, $value) {
- return $this->event->offsetSet($key, $value);
+ public function offsetSet($key, $value): void {
+ $this->event->offsetSet($key, $value);
}
- public function offsetUnset($key) {
- return $this->event->offsetUnset($key);
+ public function offsetUnset($key): void {
+ $this->event->offsetUnset($key);
}
- public function offsetExists($key) {
+ public function offsetExists($key): bool {
return $this->event->offsetExists($key);
}