Skip to content

Commit 7257c1c

Browse files
committed
Fix for PHP 8.4
1 parent eaa4c81 commit 7257c1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)