Skip to content

Commit ae7e198

Browse files
committed
minor #20782 [Serializer] Add NumberNormalizer (alamirault)
This PR was merged into the 7.3 branch. Discussion ---------- [Serializer] Add `NumberNormalizer` Fix #20624 Commits ------- 996f3d3 [Serializer] Add NumberNormalizer
2 parents 137134a + 996f3d3 commit ae7e198

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

serializer.rst

Lines changed: 8 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy