Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgati/291da1a9292d83a3a4e22cf99d9b39d3 to your computer and use it in GitHub Desktop.
Save hgati/291da1a9292d83a3a4e22cf99d9b39d3 to your computer and use it in GitHub Desktop.
Magento2 Duplicate Patch
From 2333e0fd5cc0a7f1d30cd2edcf73acd90bba8a63 Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 14:41:23 +0900
Subject: [PATCH] Declare class property to fix issue in PHP 8.2
---
Helper/Data.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Helper/Data.php b/Helper/Data.php
index f90bfba..9ad5d7c 100755
--- a/Helper/Data.php
+++ b/Helper/Data.php
@@ -13,6 +13,11 @@ use \Magento\Framework\App\Request\Http;
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
+ /**
+ * @var \Magento\Framework\App\Request\Http
+ */
+ protected $request;
+
/**
* Data constructor.
* @param Http $request
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment