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.
This commit is contained in:
Eric Lippmann 2020-01-14 14:30:50 +01:00
parent 8da37e5ca2
commit 9ddd941b42
1 changed files with 2 additions and 2 deletions

View File

@ -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;