8000 [Serializer] JsonEncoder must return arrays only · alexfilatov/symfony@cbd4fdd · GitHub
[go: up one dir, main page]

Skip to content

Commit cbd4fdd

Browse files
Seldaekfabpot
authored andcommitted
[Serializer] JsonEncoder must return arrays only
1 parent 4d4eec6 commit cbd4fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Encoder/JsonEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function encode($data, $format)
3636
*/
3737
public function decode($data, $format)
3838
{
39-
return json_decode($data);
39+
return json_decode($data, true);
4040
}
4141
}

0 commit comments

Comments
 (0)
0