mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaCommandArgument: align toPlainObject method
This commit is contained in:
parent
8f4e12a815
commit
2c17273fd1
@ -161,7 +161,8 @@ class IcingaCommandArgument extends IcingaObject
|
||||
$resolved = false,
|
||||
$skipDefaults = false,
|
||||
array $chosenProperties = null,
|
||||
$resolveIds = true
|
||||
$resolveIds = true,
|
||||
$keepId = false
|
||||
) {
|
||||
if ($resolved) {
|
||||
throw new RuntimeException(
|
||||
@ -175,6 +176,12 @@ class IcingaCommandArgument extends IcingaObject
|
||||
);
|
||||
}
|
||||
|
||||
if ($keepId) {
|
||||
throw new RuntimeException(
|
||||
'IcingaCommandArgument does not support $keepId'
|
||||
);
|
||||
}
|
||||
|
||||
// $resolveIds is misused here
|
||||
if ($resolveIds) {
|
||||
return $this->toCompatPlainObject();
|
||||
|
Loading…
x
Reference in New Issue
Block a user