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

PHP 7.4 error: "Object of class DateTime could not be converted to string #22

Closed amcsi closed 4 years ago

amcsi commented 4 years ago

This is somewhat related to #4, but not quite.

I think this issue is caused by:

https://wiki.php.net/rfc/tostring_exceptions

Additionally convert the “could not be converted to string” and “__toString() must return a string value” recoverable fatal errors into proper Error exceptions, in line with the error policy established in PHP 7.

vaail commented 4 years ago

Fixed by PR #23

gabi85ro commented 4 years ago

Could the fix from @vaail be merged into the master branch, please

Mehrdad-Dadkhah commented 4 years ago

same issue

mtx-z commented 4 years ago

Same issue with ^3.0 Laravel 7 on PHP 7.4.4

slamgundam commented 4 years ago

Same issue with ^3.0 Laravel 7 on PHP 7.4.5

gfernandez-me commented 4 years ago

same problem here

amcsi commented 4 years ago

This is fixed with v4.0.0. Closing.