Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 851a909

Browse filesBrowse files
committed
minor #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
Copy full SHA for 851a909

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/All.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.