You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With FILTER_BOOLalone, it fails in Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::validateAndDenormalize, before Symfony\Component\Serializer\Normalizer\AbstractNormalizer::applyFilterBool is applied
Maybe the applyFilterBool should be called sooner?
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
7.1.x
Description
If the context
FILTER_BOOL
is used alone, we may experience aNotNormalizableValueException
exception like this:Adding
DISABLE_TYPE_ENFORCEMENT
context solves the issue but is counter intuitive.How to reproduce
Here is the code I use:
I use a custom ExcelEncoder.
Possible Solution
With
FILTER_BOOL
alone, it fails inSymfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::validateAndDenormalize
, beforeSymfony\Component\Serializer\Normalizer\AbstractNormalizer::applyFilterBool
is appliedMaybe the
applyFilterBool
should be called sooner?Additional Context
No response
The text was updated successfully, but these errors were encountered: