File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -851,6 +851,13 @@ The Serializer component provides several built-in normalizers:
851
851
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
852
852
This normalizer converts a \B ackedEnum objects into strings or integers.
853
853
854
+ By default, it throw an exception when data is not belong to a backed enumeration. If you
855
+ want ``null `` instead, you can set the ``BackedEnumNormalizer::ALLOW_INVALID_VALUES `` option.
856
+
857
+ .. versionadded :: 6.3
858
+
859
+ The ``BackedEnumNormalizer::ALLOW_INVALID_VALUES `` context option was introduced in Symfony 6.3.
860
+
854
861
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
855
862
This normalizer works with classes that implement
856
863
:class: `Symfony\\ Component\\ Form\\ FormInterface `.
You can’t perform that action at this time.
0 commit comments