Pass $resolved as False for arguments to toPlainObject()

IcingaArguments passes the $resolved through to the individual argument in the toPlainObject. There lies the error,
simply pass false - because the argument itself cannot have any parents and therefore cannot be resolved
This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2021-09-30 16:54:46 +02:00 committed by Thomas Gelf
parent 378ef5d686
commit 6289bf065f

View File

@ -2826,7 +2826,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
if ($this instanceof ObjectWithArguments) {
$props['arguments'] = $this->arguments()->toPlainObject(
$resolved,
false,
$skipDefaults
);
}