IcingaArguments: remove Argument set to null

This commit is contained in:
Thomas Gelf 2021-10-05 18:03:41 +02:00
parent 5494ab29bd
commit a29efe478c

View File

@ -84,6 +84,10 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
public function set($key, $value)
{
if ($value === null) {
return $this->remove($key);
}
if ($value instanceof IcingaCommandArgument) {
$argument = $value;
} else {