From 2c17273fd10fb6a742ed39da5b51ee26cf42e6a7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 15 Feb 2019 01:36:33 +0100 Subject: [PATCH] IcingaCommandArgument: align toPlainObject method --- library/Director/Objects/IcingaCommandArgument.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaCommandArgument.php b/library/Director/Objects/IcingaCommandArgument.php index e5caa059..925fe318 100644 --- a/library/Director/Objects/IcingaCommandArgument.php +++ b/library/Director/Objects/IcingaCommandArgument.php @@ -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();