Skip to content

Commit ec65739

Browse files
committed
[Validator] Correct PHPDoc for Collection constructor
1 parent 6213f35 commit ec65739

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Constraints/Collection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class Collection extends Composite
3838
public string $missingFieldsMessage = 'This field is missing.';
3939

4040
/**
41-
* @param array<string,Constraint>|null $fields An associative array defining keys in the collection and their constraints
42-
* @param string[]|null $groups
43-
* @param bool|null $allowExtraFields Whether to allow additional keys not declared in the configured fields (defaults to false)
44-
* @param bool|null $allowMissingFields Whether to allow the collection to lack some fields declared in the configured fields (defaults to false)
41+
* @param array<string,Constraint|list<Constraint>>|null $fields An associative array defining keys in the collection and their constraints
42+
* @param string[]|null $groups
43+
* @param bool|null $allowExtraFields Whether to allow additional keys not declared in the configured fields (defaults to false)
44+
* @param bool|null $allowMissingFields Whether to allow the collection to lack some fields declared in the configured fields (defaults to false)
4545
*/
4646
#[HasNamedArguments]
4747
public function __construct(mixed $fields = null, ?array $groups = null, mixed $payload = null, ?bool $allowExtraFields = null, ?bool $allowMissingFields = null, ?string $extraFieldsMessage = null, ?string $missingFieldsMessage = null)

0 commit comments

Comments
 (0)