From 8188d76f6398535f7160137e55fc176ec022ec8d Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Mon, 1 Aug 2022 10:32:04 +0200 Subject: [PATCH] remove mixed return type from portal AppVariable --- .../portal/src/Twig/AppVariable.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 af2a688b9..91fc3ec38 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,15 +73,16 @@ class AppVariable implements ArrayAccess /** * @inheritDoc */ - public function offsetGet($offset): mixed + public function offsetGet($offset) { - if ($this->container->hasParameter($offset)) { - return $this->container->getParameter($offset); - } - if ($this->container->has($offset)) { - return $this->container->get($offset); - } - return null; + if ($this->container->hasParameter($offset)) { + return $this->container->getParameter($offset); + } + if ($this->container->has($offset)) { + return $this->container->get($offset); + } + + return null; } /**