mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°4517 - PHP 8.1 compatibility: Function with return type must return a value
This commit is contained in:
@@ -81,8 +81,7 @@ class AppVariable implements ArrayAccess
|
||||
if ($this->container->has($offset)) {
|
||||
return $this->container->get($offset);
|
||||
}
|
||||
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,7 +106,6 @@ class AppVariable implements ArrayAccess
|
||||
}
|
||||
|
||||
$this->container->setParameter($offset, $value);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -117,12 +115,8 @@ class AppVariable implements ArrayAccess
|
||||
{
|
||||
if ($this->container->hasParameter($offset)) {
|
||||
$this->container->setParameter($offset, null);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->container->has($offset)) {
|
||||
$this->container->set($offset, null);
|
||||
return;
|
||||
} else if ($this->container->has($offset)) {
|
||||
$this->container->set($offset, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user