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
@@ -913,22 +919,45 @@ public function testCollectDenormalizationErrors()
913
919
'useMessageForUser' => true,
914
920
'message' => 'Failed to create object because the object miss the "constructorArgument" property.',
915
921
],
922
+
$classMetadataFactory ?
923
+
[
924
+
'currentType' => 'null',
925
+
'expectedTypes' => [
926
+
'string',
927
+
],
928
+
'path' => 'dummyMessage.type',
929
+
'useMessageForUser' => false,
930
+
'message' => 'Type property "type" not found for the abstract object "Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface".',
931
+
] :
932
+
[
933
+
'currentType' => 'array',
934
+
'expectedTypes' => [
935
+
DummyMessageInterface::class,
936
+
],
937
+
'path' => 'dummyMessage',
938
+
'useMessageForUser' => false,
939
+
'message' => 'The type of the "dummyMessage" attribute for class "Symfony\Component\Serializer\Tests\Fixtures\Php74Full" must be one of "Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface" ("array" given).',
940
+
],
916
941
[
917
-
'currentType' => 'null',
942
+
'currentType' => 'string',
918
943
'expectedTypes' => [
919
-
'string',
944
+
'int',
920
945
],
921
-
'path' => 'dummyMessage.type',
922
-
'useMessageForUser' => false,
923
-
'message' => 'Type property "type" not found for the abstract object "Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface".',
946
+
'path' => 'nestedObject[int]',
947
+
'useMessageForUser' => true,
948
+
'message' => 'The type of the key "int" must be "int" ("string" given).',
0 commit comments