8000 minor #46360 [Form] Add approriate description to CollectionToArrayTr… · symfony/symfony@bb6d26a · GitHub
[go: up one dir, main page]

Skip to content

Commit bb6d26a

Browse files
minor #46360 [Form] Add approriate description to CollectionToArrayTransformer::reverseTransform docblock (Xesau)
This PR was submitted for the 6.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Form] Add approriate description to CollectionToArrayTransformer::reverseTransform docblock | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT | Doc PR | N/A It seems that during creation of CollectionToArrayTransformer, the source code of another class was used as base, and the documentation for one of the methods was not changed according with the function of the new class. Not sure which branch this should be applied to, since its not a new feature, and technically not a bug fix but a documentation fix. Commits ------- 09f47f4 Add approriate description to CollectionToArrayTransformer::reverseTransform docblock
2 parents 17e563b + 09f47f4 commit bb6d26a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class CollectionToArrayTransformer implements DataTransformerInterface
2424
/**
2525
* Transforms a collection into an array.
2626
*
27-
* @return mixed An array of entities
28-
*
2927
* @throws TransformationFailedException
3028
*/
3129
public function transform($collection)
@@ -48,11 +46,9 @@ public function transform($collection)
4846
}
4947

5048
/**
51-
* Transforms choice keys into entities.
52-
*
53-
* @param mixed $array An array of entities
49+
* Transforms an array into a collection.
5450
*
55-
* @return Collection A collection of entities
51+
* @return Collection
5652
*/
5753
public function reverseTransform($array)
5854
{

0 commit comments

Comments
 (0)
0