Skip to content

Commit

Permalink
Allow report methods to be defined straight on exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 2, 2017
1 parent 23b7d6b commit e77f6f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public function __construct(Container $container)
*/
public function report(Exception $e)
{
if (method_exists($e, 'report')) {
return $e->report();
}

if ($this->shouldntReport($e)) {
return;
}
Expand Down

0 comments on commit e77f6f7

Please sign in to comment.