From c530f8250e9de60b4b03c4ae25c7d29bcc127dfe Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Wed, 7 Feb 2024 15:15:43 +0100 Subject: [PATCH] fixup! fixup! IBX-6312: View matcher ParentContentType should not throw execption if parent is not available - fixed test --- .../MVC/Symfony/Controller/Content/PreviewController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php b/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php index 49eca62dbf..afeee1edba 100644 --- a/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php +++ b/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php @@ -59,7 +59,8 @@ class PreviewController /** @var \eZ\Publish\Core\MVC\Symfony\View\CustomLocationControllerChecker */ private $controllerChecker; - private bool $debugMode; + /** @var bool */ + private $debugMode; public function __construct( ContentService $contentService, @@ -70,7 +71,7 @@ public function __construct( PreviewLocationProvider $locationProvider, CustomLocationControllerChecker $controllerChecker, bool $debugMode, - ?LoggerInterface $logger = null, + ?LoggerInterface $logger = null ) { $this->contentService = $contentService; $this->locationService = $locationService;