We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969916e commit 632baaeCopy full SHA for 632baae
src/ExceptionNotifyServiceProvider.php
@@ -157,11 +157,11 @@ protected function extendExceptionHandler(): self
157
158
/** @var callable(\Throwable):mixed|void $reportUsing */
159
$reportUsing = $reportUsingCreator($exceptionHandler);
160
- if (! $reportUsing instanceof \Closure) {
161
- $reportUsing = \Closure::fromCallable($reportUsing);
+ if ($reportUsing instanceof \Closure) {
+ $reportUsing = $reportUsing->bindTo($exceptionHandler, $exceptionHandler);
162
}
163
164
- $exceptionHandler->reportable($reportUsing->bindTo($exceptionHandler, $exceptionHandler));
+ $exceptionHandler->reportable($reportUsing);
165
166
167
return $exceptionHandler;
0 commit comments