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; } /**