Skip to content

Commit 430060c

Browse files
committed
[Serializer] Add NumberNormalizer
1 parent fd26bac commit 430060c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

serializer.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,14 @@ normalizers (in order of priority):
13871387
By default, an exception is thrown when data is not a valid backed enumeration. If you
13881388
want ``null`` instead, you can set the ``BackedEnumNormalizer::ALLOW_INVALID_VALUES`` option.
13891389

1390+
:class:`Symfony\\Component\\Serializer\\Normalizer\\NumberNormalizer`
1391+
This normalizer converts between :phpclass:`BcMath\Number` or :phpclass:`GMP` objects and
1392+
strings or integers.
1393+
1394+
.. versionadded:: 7.2
1395+
1396+
The ``NumberNormalizer`` was introduced in Symfony 7.2.
1397+
13901398
:class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer`
13911399
This normalizer converts between :phpclass:`SplFileInfo` objects and a
13921400
`data URI`_ string (``data:...``) such that files can be embedded into

0 commit comments

Comments
 (0)