Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Serializer] Fix denormalization of object with typed constructor arg…
… (not castable) and with COLLECT_DENORMALIZATION_ERRORS There is already of test with it worked "by chance". The test is testCollectDenormalizationErrorsWithConstructor. It worked because `$reflectionClass->newInstanceArgs($params)` works if once give a `string` value that must fit in a `bool` value. PHP casts automatically the value for us. (see: https://3v4l.org/GYr0T) Now we ensure to not throw an exception if the instantiation cannot be done. The missmatch is already collected few lines above, so there nothing to do more
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters