N°4517 - PHP 8.1 compatibility: Function with return type must return a value

This commit is contained in:
Benjamin Dalsass
2022-06-30 15:05:22 +02:00
parent ab40b1b556
commit 8733ac416c

View File

@@ -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);
}
}