Skip to content

Commit e69d02b

Browse files
committed
minor #40728 [PHPDoc] Fix some union type cases (fancyweb)
This PR was merged into the 4.4 branch. Discussion ---------- [PHPDoc] Fix some union type cases | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - While working on symfony/symfony#40154, I discovered some PHPDoc issues, I'm going to comment in the review. Upper branches will need some fixes too. Commits ------- dd1481642b [PHPDoc] Fix some union type cases
2 parents f27a39b + 5656071 commit e69d02b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extension/Validator/Constraints/FormValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function validate($form, Constraint $formConstraint)
202202
/**
203203
* Returns the validation groups of the given form.
204204
*
205-
* @return string|GroupSequence|(string|GroupSequence)[] The validation groups
205+
* @return string|GroupSequence|array<string|GroupSequence> The validation groups
206206
*/
207207
private function getValidationGroups(FormInterface $form)
208208
{
@@ -241,9 +241,9 @@ private function getValidationGroups(FormInterface $form)
241241
/**
242242
* Post-processes the validation groups option for a given form.
243243
*
244-
* @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups
244+
* @param string|GroupSequence|array<string|GroupSequence>|callable $groups The validation groups
245245
*
246-
* @return GroupSequence|(string|GroupSequence)[] The validation groups
246+
* @return GroupSequence|array<string|GroupSequence> The validation groups
247247
*/
248248
private static function resolveValidationGroups($groups, FormInterface $form)
249249
{

0 commit comments

Comments
 (0)