We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$report
1 parent 56a0bdf commit cea7ba0Copy full SHA for cea7ba0
src/Illuminate/Foundation/helpers.php
@@ -711,15 +711,15 @@ function request($key = null, $default = null)
711
*
712
* @param callable $callback
713
* @param mixed $rescue
714
- * @param bool $report
+ * @param bool|callable $report
715
* @return mixed
716
*/
717
function rescue(callable $callback, $rescue = null, $report = true)
718
{
719
try {
720
return $callback();
721
} catch (Throwable $e) {
722
- if ($report) {
+ if (value($report, $e)) {
723
report($e);
724
}
725
0 commit comments