From 9ddd941b4281fad2bff15efc283c491eba11a71a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 14 Jan 2020 14:30:50 +0100 Subject: [PATCH] DeleteCommentsCommandForm: Allow iterable for setComments() The command form loops over the comments to delete. It is not necessary to expect an array here. The Icinga DB web module passes an iterable here. --- .../forms/Command/Object/DeleteCommentsCommandForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/forms/Command/Object/DeleteCommentsCommandForm.php b/modules/monitoring/application/forms/Command/Object/DeleteCommentsCommandForm.php index 71886639e..fb8b13099 100644 --- a/modules/monitoring/application/forms/Command/Object/DeleteCommentsCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/DeleteCommentsCommandForm.php @@ -30,11 +30,11 @@ class DeleteCommentsCommandForm extends CommandForm /** * Set the comments to delete * - * @param array $comments + * @param iterable $comments * * @return $this */ - public function setComments(array $comments) + public function setComments($comments) { $this->comments = $comments; return $this;