From 3f09e84fcc5e607d41d9e9abc4de813624858b1c Mon Sep 17 00:00:00 2001 From: jiri stepina Date: Thu, 24 Nov 2022 14:35:21 +0100 Subject: [PATCH] Fix php 8.1 compatibility --- library/Zend/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Registry.php b/library/Zend/Registry.php index 32d4e62bf8..ef1ce0a6c6 100644 --- a/library/Zend/Registry.php +++ b/library/Zend/Registry.php @@ -202,7 +202,7 @@ public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS) * Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960). */ #[\ReturnTypeWillChange] - public function offsetExists($index) + public function offsetExists($index) : bool { return array_key_exists($index, $this); }