From fa33cdab314faf571bc2b91293d3cf864eed3330 Mon Sep 17 00:00:00 2001 From: Pieter Hoste Date: Tue, 31 Dec 2024 14:09:36 +0100 Subject: [PATCH 1/2] Don't use void return value from parent. Fixes error phpstan found while scanning on level 0. --- .../Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php b/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php index a9d5028050d..afa9a7ef8c3 100644 --- a/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php +++ b/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php @@ -36,7 +36,8 @@ public function __construct( PageFactory $pageFactory ) { $this->pageFactory = $pageFactory; - return parent::__construct($context); + + parent::__construct($context); } /** From 5fdb88bde7787de234aa350cbfc853f12f8aaffa Mon Sep 17 00:00:00 2001 From: Pieter Hoste Date: Tue, 31 Dec 2024 14:11:13 +0100 Subject: [PATCH 2/2] Fixed static tests. --- .../PageBuilder/Controller/Adminhtml/Stage/Render.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php b/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php index afa9a7ef8c3..975621ca89f 100644 --- a/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php +++ b/app/code/Magento/PageBuilder/Controller/Adminhtml/Stage/Render.php @@ -1,8 +1,7 @@