Skip to content

Commit

Permalink
Fix for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Dec 29, 2024
1 parent f5bfb10 commit b8b1b7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"

steps:
- name: Checkout.
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class ErrorHandler implements RequestHandlerInterface
*/
public function __construct(
RequestHandlerInterface $handler,
ErrorResponseGeneratorInterface $responseGenerator = null
?ErrorResponseGeneratorInterface $responseGenerator = null
) {
$this->handler = $handler;
$this->responseGenerator = $responseGenerator ?? new ErrorResponseGenerator();
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorHandlerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class ErrorHandlerMiddleware implements MiddlewareInterface
/**
* @param ErrorResponseGeneratorInterface|null $responseGenerator
*/
public function __construct(ErrorResponseGeneratorInterface $responseGenerator = null)
public function __construct(?ErrorResponseGeneratorInterface $responseGenerator = null)
{
$this->responseGenerator = $responseGenerator ?? new ErrorResponseGenerator();
}
Expand Down

0 comments on commit b8b1b7c

Please sign in to comment.