Skip to content

Commit dbbccda

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: add note in DiscriminatorMap section
2 parents ee104c7 + 09f5cc1 commit dbbccda

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
@@ -1884,6 +1884,11 @@ and ``BitBucketCodeRepository`` classes:
18841884
</class>
18851885
</serializer>
18861886
1887+
.. note::
1888+
1889+
The values of the ``mapping`` array option must be strings.
1890+
Otherwise, they will be cast into strings automatically.
1891+
18871892
Once configured, the serializer uses the mapping to pick the correct class::
18881893

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

0 commit comments

Comments
 (0)