Skip to content

Commit bb599e8

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: add note in DiscriminatorMap section
2 parents 89a47a6 + 7f19f00 commit bb599e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/serializer.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,11 @@ and ``BitBucketCodeRepository`` classes:
18291829
</class>
18301830
</serializer>
18311831
1832+
.. note::
1833+
1834+
The values of the ``mapping`` array option must be strings.
1835+
Otherwise, they will be cast into strings automatically.
1836+
18321837
Once configured, the serializer uses the mapping to pick the correct class::
18331838

18341839
$serialized = $serializer->serialize(new GitHubCodeRepository(), 'json');

0 commit comments

Comments
 (0)