mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
remove mixed return type from portal AppVariable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user