Skip to content

Commit 851a909

Browse files
committed
minor symfony#59926 [Validator] Fix docblock of All constraint constructor (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Validator] Fix docblock of `All` constraint constructor | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Single constraints can be provided to `All` (as shown in the the `AllValidatorTest`), but PHPStan currently complains as the docblock doesn't permit it. Commits ------- 62d880d [Validator] Fix docblock of `All` constraint constructor
2 parents fa844c5 + 62d880d commit 851a909

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Constraints/All.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class All extends Composite
2525
public array|Constraint $constraints = [];
2626

2727
/**
28-
* @param array<Constraint>|array<string,mixed>|null $constraints
29-
* @param string[]|null $groups
28+
* @param array<Constraint>|array<string,mixed>|Constraint|null $constraints
29+
* @param string[]|null $groups
3030
*/
3131
public function __construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null)
3232
{

0 commit comments

Comments
 (0)