File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
tests/Integration/Http/Fixtures Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ interface ExceptionProcessor
99 /**
1010 * Processes the given exception.
1111 */
12- public function process (Throwable $ throwable ): Throwable ;
12+ public function process (Throwable $ throwable ): void ;
1313}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function __construct(
1919 ) {}
2020
2121 /**
22- * Reports the given exception to the registered exceptionm processors.
22+ * Reports the given exception to the registered exception processors.
2323 */
2424 public function report (Throwable $ throwable ): void
2525 {
@@ -29,9 +29,10 @@ public function report(Throwable $throwable): void
2929 return ;
3030 }
3131
32+ /** @var class-string<\Tempest\Core\ExceptionProcessor> $processor */
3233 foreach ($ this ->appConfig ->exceptionProcessors as $ processor ) {
3334 $ handler = $ this ->container ->get ($ processor );
34- $ throwable = $ handler ->process ($ throwable );
35+ $ handler ->process ($ throwable );
3536 }
3637 }
3738}
Original file line number Diff line number Diff line change 1010 */
1111final class LogExceptionProcessor implements ExceptionProcessor
1212{
13- public function process (Throwable $ throwable ): Throwable
13+ public function process (Throwable $ throwable ): void
1414 {
1515 $ items = [
1616 'class ' => $ throwable ::class,
@@ -21,7 +21,5 @@ public function process(Throwable $throwable): Throwable
2121 ];
2222
2323 Debug::resolve ()->log ($ items , writeToOut: false );
24-
25- return $ throwable ;
2624 }
2725}
Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ final class NullExceptionProcessor implements ExceptionProcessor
1111{
1212 public static array $ exceptions = [];
1313
14- public function process (Throwable $ throwable ): Throwable
14+ public function process (Throwable $ throwable ): void
1515 {
1616 static ::$ exceptions [] = $ throwable ;
17-
18- return $ throwable ;
1917 }
2018}
You can’t perform that action at this time.
0 commit comments