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:
parent
1b94e1e481
commit
1077537d70
@ -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);
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user