File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 3131use Guanguans \LaravelExceptionNotify \Jobs \ReportExceptionJob ;
3232use Guanguans \Notify \Factory ;
3333use Illuminate \Cache \RateLimiter ;
34- use Illuminate \Contracts \Container \BindingResolutionException ;
3534use Illuminate \Support \Arr ;
3635use Illuminate \Support \Manager ;
3736use Illuminate \Support \Str ;
@@ -108,9 +107,6 @@ public function getDefaultDriver()
108107 return Arr::first ((array ) config ('exception-notify.defaults ' ));
109108 }
110109
111- /**
112- * @throws BindingResolutionException
113- */
114110 protected function shouldntReport (\Throwable $ throwable ): bool
115111 {
116112 if (! config ('exception-notify.enabled ' )) {
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ public function __construct(array $reports)
4343 }
4444 }
4545
46- /**
47- * @noinspection BadExceptionsProcessingInspection
48- */
4946 public function handle (): void
5047 {
5148 foreach ($ this ->reports as $ name => $ report ) {
Original file line number Diff line number Diff line change 11<?php
22
3- /** @noinspection NullPointerExceptionInspection */
4-
53declare (strict_types=1 );
64
75/**
1210 * This source file is subject to the MIT license that is bundled.
1311 */
1412
13+ use Illuminate \Http \Request ;
14+
1515it ('can get headers ' , function (): void {
16- expect (request ( ))
16+ expect ($ this -> app -> make (Request::class ))
1717 ->headers ()->toBeArray ()
1818 ->headers ('user-agent ' )->toBeString ();
1919})->group (__DIR__ , __FILE__ );
Original file line number Diff line number Diff line change 3535 )
3636 ->through (FixPrettyJsonPipe::class)
3737 ->then (
38+ /**
39+ * @throws JsonException
40+ */
3841 static fn (Collection $ collectors ): Stringable => str (to_pretty_json ($ collectors ->jsonSerialize ()))
3942 ->substr (-256 )
4043 );
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function tearDown(): void
5353 {
5454 parent ::tearDown ();
5555 if ($ container = \Mockery::getContainer ()) {
56- $ this ->addToAssertionCount ($ container ->Mockery_getExpectationCount ());
56+ $ this ->addToAssertionCount ($ container ->mockery_getExpectationCount ());
5757 }
5858
5959 \Mockery::close ();
You can’t perform that action at this time.
0 commit comments