File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 111111 // __DIR__.'/src/OutputManager.php',
112112 ],
113113 StaticClosureRector::class => [
114+ __DIR__ .'/src/ReportUsingCreator.php ' ,
114115 __DIR__ .'/tests ' ,
115116 ],
116117 StaticArrowFunctionRector::class => [
Original file line number Diff line number Diff line change 1212
1313namespace Guanguans \LaravelExceptionNotify ;
1414
15+ use Guanguans \LaravelExceptionNotify \Facades \ExceptionNotify ;
1516use Illuminate \Contracts \Debug \ExceptionHandler ;
1617
1718/**
@@ -24,14 +25,14 @@ class ReportUsingCreator
2425 /**
2526 * @psalm-suppress UndefinedThisPropertyFetch
2627 * @psalm-suppress InaccessibleProperty
28+ *
29+ * @noinspection StaticClosureCanBeUsedInspection
30+ * @noinspection AnonymousFunctionStaticInspection
2731 */
2832 public function __invoke (ExceptionHandler $ exceptionHandler ): \Closure
2933 {
3034 return function (\Throwable $ throwable ) use ($ exceptionHandler ): void {
31- $ this ->container ->make (ExceptionNotifyManager::class)->reportIf (
32- $ exceptionHandler ->shouldReport ($ throwable ),
33- $ throwable
34- );
35+ ExceptionNotify::reportIf ($ exceptionHandler ->shouldReport ($ throwable ), $ throwable );
3536 };
3637 }
3738}
You can’t perform that action at this time.
0 commit comments