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
bug #53108 [Serializer] Fix using deserialization path 5.4 (HypeMC)
This PR was merged into the 5.4 branch.
Discussion
----------
[Serializer] Fix using deserialization path 5.4
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
I've noticed this while working on #53107.
Sometimes, the `path` provided to the `NotNormalizableValueException` is incorrect.
Commits
-------
d498de7 [Serializer] Fix using deserialization path
'message' => 'Failed to denormalize attribute "string" value for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full": Expected argument of type "string", "array" given at property path "string".',
1234
+
],
1235
+
[
1236
+
'currentType' => 'array',
1237
+
'expectedTypes' => [
1238
+
'unknown',
1239
+
],
1240
+
'path' => 'int',
1241
+
'useMessageForUser' => false,
1242
+
'message' => 'Failed to denormalize attribute "int" value for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full": Expected argument of type "int", "array" given at property path "int".',
1243
+
],
1244
+
[
1245
+
'currentType' => 'array',
1246
+
'expectedTypes' => [
1247
+
'unknown',
1248
+
],
1249
+
'path' => 'float',
1250
+
'useMessageForUser' => false,
1251
+
'message' => 'Failed to denormalize attribute "float" value for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full": Expected argument of type "float", "array" given at property path "float".',
0 commit comments