Skip to content

Commit

Permalink
Update helpers.php (#30838)
Browse files Browse the repository at this point in the history
  • Loading branch information
SjorsO authored and taylorotwell committed Dec 16, 2019
1 parent 4c4757a commit db794ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function rescue(callable $callback, $rescue = null, $report = true)
report($e);
}

return value($rescue);
return $rescue instanceof Closure ? $rescue($e) : $rescue;
}
}
}
Expand Down

0 comments on commit db794ce

Please sign in to comment.