Skip to content

Commit 71b6b74

Browse files
committed
refactor: add return type
1 parent d373aea commit 71b6b74

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

system/Debug/ExceptionHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ final class ExceptionHandler extends BaseExceptionHandler implements ExceptionHa
3636

3737
/**
3838
* Determines the correct way to display the error.
39-
*
40-
* @return void
4139
*/
4240
public function handle(
4341
Throwable $exception,
4442
RequestInterface $request,
4543
ResponseInterface $response,
4644
int $statusCode,
4745
int $exitCode
48-
) {
46+
): void {
4947
// ResponseTrait needs these properties.
5048
$this->request = $request;
5149
$this->response = $response;

system/Debug/ExceptionHandlerInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ interface ExceptionHandlerInterface
1919
{
2020
/**
2121
* Determines the correct way to display the error.
22-
*
23-
* @return void
2422
*/
2523
public function handle(
2624
Throwable $exception,
2725
RequestInterface $request,
2826
ResponseInterface $response,
2927
int $statusCode,
3028
int $exitCode
31-
);
29+
): void;
3230
}

0 commit comments

Comments
 (0)