1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-17 21:18:23 +01:00

Fixed json_decode call on performace test to return array as JsonMachine

This commit is contained in:
Filip Halaxa 2019-03-10 16:35:20 +01:00
parent 1b94e1e481
commit 1077537d70

View File

@ -12,7 +12,7 @@ $decoders = [
return JsonMachine::fromString(stream_get_contents(fopen($file, 'r')));
},
'json_decode()' => function($file) {
return json_decode(stream_get_contents(fopen($file, 'r')));
return json_decode(stream_get_contents(fopen($file, 'r')), true);
},
];