Skip to content

Commit

Permalink
wip (#35803)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 6, 2021
1 parent 6e56312 commit 1011218
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Illuminate/Foundation/helpers.php
Expand Up @@ -586,11 +586,15 @@ function redirect($to = null, $status = 302, $headers = [], $secure = null)
/**
* Report an exception.
*
* @param \Throwable $exception
* @param \Throwable|string $exception
* @return void
*/
function report(Throwable $exception)
function report($exception)
{
if (is_string($exception)) {
$exception = new Exception($exception);
}

app(ExceptionHandler::class)->report($exception);
}
}
Expand Down

0 comments on commit 1011218

Please sign in to comment.