Skip to content

Commit

Permalink
cleanup(php): PHP 8.2 update (rector)
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Dec 29, 2023
1 parent 4f6c3fd commit 9f14d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

return static function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
return static fn (array $context) => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2 changes: 1 addition & 1 deletion src/Dto/RegisterFormDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class RegisterFormDto
public string $currency;

#[Assert\NotNull]
public ?\DateTimeImmutable $birthday;
public ?\DateTimeImmutable $birthday = null;

#[Assert\NotNull]
public Fruit $fruit;
Expand Down

0 comments on commit 9f14d5a

Please sign in to comment.