squareboat / sneaker

An easy way to send emails whenever an exception occurs on server.
MIT License
222 stars 46 forks source link

Laravel 7 Support #52

Closed maddhatter closed 4 years ago

maddhatter commented 4 years ago

Add support for Laravel 7.

Remove Exception type hints in SquareBoat\Sneaker\Sneaker, since Laravel 7 uses Throwable in \App\Exceptions\Handler.

maddhatter commented 4 years ago

Needs more work... if an Error is caught instead of an Exception, it causes issues w/ the handler classes

maddhatter commented 4 years ago

Fixed the issue with catching Throwables that aren't exceptions. Looks like Symfony already handled all the work, just need to call FlattenException::createFromThrowable instead of FlattenException::create.

vinayak25 commented 4 years ago

Looks Good! @maddhatter