flugg / laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
MIT License
861 stars 86 forks source link

Declaration of App\Exceptions\Handler::render($request, Throwable $exception) must be compatible with Flugg\Responder\Exceptions\Handler::render($request, $exception) #162

Open dennisoderwald opened 4 years ago

dennisoderwald commented 4 years ago

Laravel 7 utilizes the 5.x series of the Symfony components. Some minor changes to your application are required to accommodate this upgrade.

First, the report, render, shouldReport, and renderForConsole methods of your application's App\Exceptions\Handler class should accept instances of the Throwable interface instead of Exception instances.

Source: https://laravel.com/docs/7.x/upgrade#symfony-5-related-upgrades