Skip to content

Commit 215bb9b

Browse files
committed
Fix more generic types
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent 9ac7f2f commit 215bb9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ConstraintViolationList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
class ConstraintViolationList implements \IteratorAggregate, ConstraintViolationListInterface
2222
{
2323
/**
24-
* @var ConstraintViolationInterface[]
24+
* @var list<ConstraintViolationInterface>
2525
*/
2626
private $violations = [];
2727

2828
/**
2929
* Creates a new constraint violation list.
3030
*
31-
* @param ConstraintViolationInterface[] $violations The constraint violations to add to the list
31+
* @param iterable<mixed, ConstraintViolationInterface> $violations The constraint violations to add to the list
3232
*/
33-
public function __construct(array $violations = [])
33+
public function __construct(iterable $violations = [])
3434
{
3535
foreach ($violations as $violation) {
3636
$this->add($violation);

0 commit comments

Comments
 (0)