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 eaa4c81 commit 7257c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 7257c1c

Please sign in to comment.