From 9f14d5ac8db92236e3f29f3b084a539a74205d42 Mon Sep 17 00:00:00 2001 From: COil Date: Fri, 29 Dec 2023 06:58:33 +0100 Subject: [PATCH] cleanup(php): PHP 8.2 update (rector) --- public/index.php | 4 +--- src/Dto/RegisterFormDto.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/index.php b/public/index.php index 508a169..6ff993c 100644 --- a/public/index.php +++ b/public/index.php @@ -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']); diff --git a/src/Dto/RegisterFormDto.php b/src/Dto/RegisterFormDto.php index ff34818..8761ca2 100644 --- a/src/Dto/RegisterFormDto.php +++ b/src/Dto/RegisterFormDto.php @@ -28,7 +28,7 @@ final class RegisterFormDto public string $currency; #[Assert\NotNull] - public ?\DateTimeImmutable $birthday; + public ?\DateTimeImmutable $birthday = null; #[Assert\NotNull] public Fruit $fruit;