Skip to content

Commit 8b56859

Browse files
committed
Adjust ConstraintList type to allow int key only
1 parent 5b26758 commit 8b56859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ValidationRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Validator\Constraint;
88

99
/**
10-
* @phpstan-type ConstraintList array<string, string|Constraint|array<string|Constraint>>|Constraint[]
10+
* @phpstan-type ConstraintList array<string, string|Constraint|array<string|Constraint>>|array<int, Constraint>
1111
* @phpstan-type DefinitionCollection array{query?: ConstraintList, request?: ConstraintList, attributes?: ConstraintList }
1212
*/
1313
class ValidationRules

0 commit comments

Comments
 (0)