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:
parent
8da37e5ca2
commit
9ddd941b42
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue