File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/Illuminate/Foundation/Exceptions Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,23 @@ protected function shouldntReport(Throwable $e)
299
299
return ! is_null (Arr::first ($ dontReport , fn ($ type ) => $ e instanceof $ type ));
300
300
}
301
301
302
+ /**
303
+ * Remove the given exception class from the list of exceptions that should be ignored.
304
+ *
305
+ * @param string $exception
306
+ * @return $this
307
+ */
308
+ public function stopIgnoring (string $ exception )
309
+ {
310
+ $ this ->dontReport = collect ($ this ->dontReport )
311
+ ->reject (fn ($ ignored ) => $ ignored === $ exception )->values ()->all ();
312
+
313
+ $ this ->internalDontReport = collect ($ this ->internalDontReport )
314
+ ->reject (fn ($ ignored ) => $ ignored === $ exception )->values ()->all ();
315
+
316
+ return $ this ;
317
+ }
318
+
302
319
/**
303
320
* Create the context array for logging the given exception.
304
321
*
You can’t perform that action at this time.
0 commit comments