Skip to content

Commit f8c91fd

Browse files
committed
minor #24969 Replace array|\Traversable by iterable (ro0NL)
This PR was merged into the 2.7 branch. Discussion ---------- Replace array|\Traversable by iterable | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Replace `array|\Traversable` by `iterable`, favoring pure API (or less mixed at least :)) and be clear whenever phpdoc is replaced. https://secure.php.net/manual/en/language.types.iterable.php Commits ------- 278088931b Replace array|\Traversable by iterable
2 parents ea91e49 + ed1cf8c commit f8c91fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/RecursiveContextualValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private function validateObject($object, $propertyPath, array $groups, $traversa
378378
* objects are iterated as well. Nested arrays are always iterated,
379379
* regardless of the value of $recursive.
380380
*
381-
* @param array|\Traversable $collection The collection
381+
* @param iterable $collection The collection
382382
* @param string $propertyPath The current property path
383383
* @param string[] $groups The validated groups
384384
* @param bool $stopRecursion Whether to disable

0 commit comments

Comments
 (0)