Skip to content

Commit 043f0d7

Browse files
authored
Fix for PHP 8.4 (#7)
* Fix for PHP 8.4 * Add PHP 8.4 versions to build workflow
1 parent eaa4c81 commit 043f0d7

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/Infrastructure/Http/WhoopsErrorResponseGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class WhoopsErrorResponseGenerator implements ErrorResponseGeneratorInterf
3030
/**
3131
* @param RunInterface|null $whoops
3232
*/
33-
public function __construct(RunInterface $whoops = null)
33+
public function __construct(?RunInterface $whoops = null)
3434
{
3535
if ($whoops instanceof RunInterface) {
3636
$this->whoops = $whoops;

src/Model/Post/PostRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class PostRepository
1818
/**
1919
* @param array<int, Post>|null $posts
2020
*/
21-
public function __construct(array $posts = null)
21+
public function __construct(?array $posts = null)
2222
{
2323
$this->posts = $posts ?? [
2424
1 => new Post(1, 'Post #1', new DateTimeImmutable('+1 day')),

0 commit comments

Comments
 (0)