File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
class ConstraintViolationList implements \IteratorAggregate, ConstraintViolationListInterface
22
22
{
23
23
/**
24
- * @var ConstraintViolationInterface[]
24
+ * @var list< ConstraintViolationInterface>
25
25
*/
26
26
private $ violations = [];
27
27
28
28
/**
29
29
* Creates a new constraint violation list.
30
30
*
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
32
32
*/
33
- public function __construct (array $ violations = [])
33
+ public function __construct (iterable $ violations = [])
34
34
{
35
35
foreach ($ violations as $ violation ) {
36
36
$ this ->add ($ violation );
You can’t perform that action at this time.
0 commit comments