From 152e82538f406d5e077ebdab4f83b3792f32e10c Mon Sep 17 00:00:00 2001 From: Torben Hansen Date: Fri, 1 Nov 2024 09:51:30 +0100 Subject: [PATCH] [TASK] Avoid implicit nullable parameter --- Classes/Controller/BannerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/BannerController.php b/Classes/Controller/BannerController.php index 27a7360..41a3378 100644 --- a/Classes/Controller/BannerController.php +++ b/Classes/Controller/BannerController.php @@ -35,7 +35,7 @@ public function __construct( /** * Click Action for a banner */ - public function clickAction(Banner $banner = null): ResponseInterface + public function clickAction(?Banner $banner = null): ResponseInterface { if (is_null($banner)) { $response = GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction(