From 113756db30fcbffe9e90b54c29e78dee0676109f Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 19 Oct 2021 17:11:53 +0200 Subject: Fix ArrayAccess and JsonSerializable return types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet --- lib/public/EventDispatcher/GenericEvent.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/public/EventDispatcher') diff --git a/lib/public/EventDispatcher/GenericEvent.php b/lib/public/EventDispatcher/GenericEvent.php index e78ae1827a1..1ba1cc6da14 100644 --- a/lib/public/EventDispatcher/GenericEvent.php +++ b/lib/public/EventDispatcher/GenericEvent.php @@ -156,7 +156,9 @@ class GenericEvent extends Event implements ArrayAccess, IteratorAggregate { * @link https://php.net/manual/en/arrayaccess.offsetget.php * @since 18.0.0 * @deprecated 22.0.0 + * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->arguments[$offset]; } -- cgit v1.2.3