Skip to content

Commit 5b26758

Browse files
authored
Merge pull request #35 from 123inkt/Adjust-validation-rules-typehinting-to-allow-array-constraint
Adjust validation rules typehint to allow Constraint[]
2 parents d8b8ba1 + 8b06808 commit 5b26758

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

0 commit comments

Comments
 (0)