Skip to content

Commit d4a99ee

Browse files
VincentLangletfabpot
authored andcommitted
[Validator] Document Compound::getConstraints options
1 parent 9b323c6 commit d4a99ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Component/Validator/Constraint.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public function __construct(mixed $options = null, ?array $groups = null, mixed
121121
}
122122
}
123123

124+
/**
125+
* @return array<string, mixed>
126+
*/
124127
protected function normalizeOptions(mixed $options): array
125128
{
126129
$normalizedOptions = [];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ final public function validatedBy(): string
4646
}
4747

4848
/**
49+
* @param array<string, mixed> $options
50+
*
4951
* @return Constraint[]
5052
*/
5153
abstract protected function getConstraints(array $options): array;

0 commit comments

Comments
 (0)