Skip to content

Commit 0e4adce

Browse files
authored
Fix for PHP 8.4 (#3)
1 parent f5bfb10 commit 0e4adce

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
- "8.0"
4040
- "8.1"
4141
- "8.2"
42+
- "8.3"
43+
- "8.4"
4244

4345
steps:
4446
- name: Checkout.

.github/workflows/static.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- "8.0"
3636
- "8.1"
3737
- "8.2"
38+
- "8.3"
3839

3940
steps:
4041
- name: Checkout.

src/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class ErrorHandler implements RequestHandlerInterface
2929
*/
3030
public function __construct(
3131
RequestHandlerInterface $handler,
32-
ErrorResponseGeneratorInterface $responseGenerator = null
32+
?ErrorResponseGeneratorInterface $responseGenerator = null
3333
) {
3434
$this->handler = $handler;
3535
$this->responseGenerator = $responseGenerator ?? new ErrorResponseGenerator();

src/ErrorHandlerMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class ErrorHandlerMiddleware implements MiddlewareInterface
1717
/**
1818
* @param ErrorResponseGeneratorInterface|null $responseGenerator
1919
*/
20-
public function __construct(ErrorResponseGeneratorInterface $responseGenerator = null)
20+
public function __construct(?ErrorResponseGeneratorInterface $responseGenerator = null)
2121
{
2222
$this->responseGenerator = $responseGenerator ?? new ErrorResponseGenerator();
2323
}

0 commit comments

Comments
 (0)