mlanin / laravel-api-debugger

Easy debug for your JSON API.
http://blog.lanin.me/easy-debug-for-your-json-api/
MIT License
233 stars 54 forks source link

It will crash if the response data is empty #5

Closed AbanoubNassem closed 7 years ago

AbanoubNassem commented 7 years ago

it will crash if the response data is empty :-

the fix go to line 110 and replace:

$data = $response->getData(true); by $data = $response->getData(true) ?: [];

that should do it..

mlanin commented 7 years ago

Thank you! I'll fix it in a while.

mlanin commented 7 years ago

Fixed