From 1ec6c7f3b46a84d3b2bd887c0f4a4e1cc921a3d0 Mon Sep 17 00:00:00 2001 From: "Vincent.Le" Date: Wed, 26 Feb 2020 16:44:39 +0700 Subject: [PATCH 1/2] Issue 27009: Fix error fire on catch when create new theme --- lib/internal/Magento/Framework/View/Page/Config/Renderer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/Magento/Framework/View/Page/Config/Renderer.php b/lib/internal/Magento/Framework/View/Page/Config/Renderer.php index 6e64ed2150d4d..3e7000fabfbd3 100644 --- a/lib/internal/Magento/Framework/View/Page/Config/Renderer.php +++ b/lib/internal/Magento/Framework/View/Page/Config/Renderer.php @@ -414,6 +414,7 @@ protected function renderAssetHtml(\Magento\Framework\View\Asset\PropertyGroup $ $attributes = $this->getGroupAttributes($group); $result = ''; + $template= ''; try { /** @var $asset \Magento\Framework\View\Asset\AssetInterface */ foreach ($assets as $asset) { From 01cde22ee1442d292802c7c36f97266ccd33c11c Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Thu, 5 Mar 2020 18:44:13 +0200 Subject: [PATCH 2/2] Improve code style --- lib/internal/Magento/Framework/View/Page/Config/Renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/View/Page/Config/Renderer.php b/lib/internal/Magento/Framework/View/Page/Config/Renderer.php index 3e7000fabfbd3..80f6fcbfc1b54 100644 --- a/lib/internal/Magento/Framework/View/Page/Config/Renderer.php +++ b/lib/internal/Magento/Framework/View/Page/Config/Renderer.php @@ -414,7 +414,7 @@ protected function renderAssetHtml(\Magento\Framework\View\Asset\PropertyGroup $ $attributes = $this->getGroupAttributes($group); $result = ''; - $template= ''; + $template = ''; try { /** @var $asset \Magento\Framework\View\Asset\AssetInterface */ foreach ($assets as $asset) {