DeleteDowntimesCommandForm: Allow iterable for setDowntimes()

The command form loops over the downtimes 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:36:50 +01:00
parent 9ddd941b42
commit 154357aa11
1 changed files with 2 additions and 2 deletions

View File

@ -30,11 +30,11 @@ class DeleteDowntimesCommandForm extends CommandForm
/**
* Set the downtimes to delete
*
* @param array $downtimes
* @param iterable $downtimes
*
* @return $this
*/
public function setDowntimes(array $downtimes)
public function setDowntimes($downtimes)
{
$this->downtimes = $downtimes;
return $this;