Commit e17ff0c
committed
minor symfony#20471 Update serializer.rst (daveharding)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead.
Discussion
----------
Update serializer.rst
The $maxDepthHandler function might return NULL, but the return type is set to : string, which causes a TypeError to be thrown.
This change allows the $maxDepthHandler function to return null, by changing the return type to : ?string for this example.
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `7.x` for features of unreleased versions).
-->
Commits
-------
5a43fd2 Update serializer.rst1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1789 | 1789 | | |
1790 | 1790 | | |
1791 | 1791 | | |
1792 | | - | |
| 1792 | + | |
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
| |||
0 commit comments