From ef81bdb1e146ab424ceeaffe0ad2bdd075802544 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 3 Aug 2022 10:37:02 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1:=20Fix=20return=20t?= =?UTF-8?q?ype=20for=20classes=20implementing=20ArrayAccess?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return type cannot be set to mixed as the code need to be compatible with PHP 7.2+ --- datamodels/2.x/itop-portal-base/portal/src/Twig/AppVariable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/datamodels/2.x/itop-portal-base/portal/src/Twig/AppVariable.php b/datamodels/2.x/itop-portal-base/portal/src/Twig/AppVariable.php index 91fc3ec38..ae0e9353a 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/Twig/AppVariable.php +++ b/datamodels/2.x/itop-portal-base/portal/src/Twig/AppVariable.php @@ -73,6 +73,7 @@ class AppVariable implements ArrayAccess /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { if ($this->container->hasParameter($offset)) {