We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a89412 commit 05b6ce4Copy full SHA for 05b6ce4
components/serializer.rst
@@ -1837,6 +1837,11 @@ and ``BitBucketCodeRepository`` classes:
1837
</class>
1838
</serializer>
1839
1840
+.. note::
1841
+
1842
+ The values of the array parameter `mapping` should be strings.
1843
+ Otherwise, it will implicitly be cast into strings.
1844
1845
Once configured, the serializer uses the mapping to pick the correct class::
1846
1847
$serialized = $serializer->serialize(new GitHubCodeRepository(), 'json');
0 commit comments