remove mixed return type from portal AppVariable

This commit is contained in:
Benjamin Dalsass
2022-08-01 10:32:04 +02:00
parent 57a3da1cca
commit 8188d76f63

View File

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