Skip to content

Commit

Permalink
Fix for PHP 8.4 (#7)
Browse files Browse the repository at this point in the history
* Fix for PHP 8.4

* Add PHP 8.4 versions to build workflow
  • Loading branch information
devanych authored Dec 29, 2024
1 parent eaa4c81 commit 043f0d7
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/Infrastructure/Http/WhoopsErrorResponseGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class WhoopsErrorResponseGenerator implements ErrorResponseGeneratorInterf
/**
* @param RunInterface|null $whoops
*/
public function __construct(RunInterface $whoops = null)
public function __construct(?RunInterface $whoops = null)
{
if ($whoops instanceof RunInterface) {
$this->whoops = $whoops;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Post/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class PostRepository
/**
* @param array<int, Post>|null $posts
*/
public function __construct(array $posts = null)
public function __construct(?array $posts = null)
{
$this->posts = $posts ?? [
1 => new Post(1, 'Post #1', new DateTimeImmutable('+1 day')),
Expand Down

0 comments on commit 043f0d7

Please sign in to comment.