File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121use Illuminate \Container \Container ;
2222use Illuminate \Contracts \Container \BindingResolutionException ;
2323use Illuminate \Contracts \Debug \ExceptionHandler ;
24+ use Illuminate \Foundation \Exceptions \Handler ;
2425use Illuminate \Http \Request ;
2526use Illuminate \Support \Collection ;
2627use Illuminate \Support \ServiceProvider ;
@@ -142,10 +143,7 @@ protected function registerTestCommand(): self
142143 protected function extendExceptionHandler (): self
143144 {
144145 $ this ->app ->extend (ExceptionHandler::class, function (ExceptionHandler $ exceptionHandler ): ExceptionHandler {
145- if (
146- ($ reportUsingCreator = config ('exception-notify.report_using_creator ' ))
147- && method_exists ($ exceptionHandler , 'reportable ' )
148- ) {
146+ if ($ reportUsingCreator = config ('exception-notify.report_using_creator ' )) {
149147 /** @var callable(ExceptionHandler):callable|class-string $reportUsingCreator */
150148 if (\is_string ($ reportUsingCreator ) && class_exists ($ reportUsingCreator )) {
151149 $ reportUsingCreator = $ this ->app ->make ($ reportUsingCreator );
@@ -157,6 +155,7 @@ protected function extendExceptionHandler(): self
157155 $ reportUsing = $ reportUsing ->bindTo ($ exceptionHandler , $ exceptionHandler );
158156 }
159157
158+ /** @var Handler $exceptionHandler */
160159 $ exceptionHandler ->reportable ($ reportUsing );
161160 }
162161
You can’t perform that action at this time.
0 commit comments