From 87260cc788ce18004226a8c597a64c5ecba96113 Mon Sep 17 00:00:00 2001 From: Aashish Date: Wed, 17 Jul 2024 13:49:49 +0700 Subject: [PATCH 1/4] Add AllowDynamicProperties attribute to resolve deprecation error for dynamic property. --- Block/Adminhtml/System/Config/Form/Field/Webhook.php | 1 + Block/Checkout/Onepage/Success/AdditionalInformation.php | 1 + Controller/Callback/Offsite.php | 1 + Controller/Callback/Threedsecure.php | 1 + Controller/Payment/Complete.php | 1 + Cron/OrderSyncStatus.php | 1 + Helper/ReturnUrlHelper.php | 1 + Model/Api/Customer.php | 1 + Model/Api/Event.php | 1 + Model/Config/Config.php | 1 + Model/RefundSyncStatus.php | 1 + Model/SyncStatus.php | 1 + Observer/WebhookObserver/WebhookObserver.php | 1 + Plugin/ConfigSectionPaymentPlugin.php | 1 + Service/CreditMemoService.php | 1 + 15 files changed, 15 insertions(+) diff --git a/Block/Adminhtml/System/Config/Form/Field/Webhook.php b/Block/Adminhtml/System/Config/Form/Field/Webhook.php index 524ce938e..cef5a7d73 100644 --- a/Block/Adminhtml/System/Config/Form/Field/Webhook.php +++ b/Block/Adminhtml/System/Config/Form/Field/Webhook.php @@ -8,6 +8,7 @@ use Magento\Store\Model\StoreManagerInterface; use Magento\Framework\App\Request\Http; +#[\AllowDynamicProperties] class Webhook extends Field { /** diff --git a/Block/Checkout/Onepage/Success/AdditionalInformation.php b/Block/Checkout/Onepage/Success/AdditionalInformation.php index f457ebb59..c861e0dec 100644 --- a/Block/Checkout/Onepage/Success/AdditionalInformation.php +++ b/Block/Checkout/Onepage/Success/AdditionalInformation.php @@ -1,6 +1,7 @@ Date: Wed, 17 Jul 2024 14:11:46 +0700 Subject: [PATCH 2/4] Update omise-php version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf0fdc560..8c2da1af9 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": ">=5.6", "magento/magento-composer-installer": ">=0.3.0", - "omise/omise-php": "2.16.1" + "omise/omise-php": "2.18.0" }, "require-dev": { "phpunit/phpunit": "^5.7 || ^9.5", From 11848ca24a420a657a961c84e91fb27c7b9d2fe2 Mon Sep 17 00:00:00 2001 From: Aashish Date: Tue, 23 Jul 2024 12:03:20 +0700 Subject: [PATCH 3/4] Add AllowDynamicProperties in Model/Data/Email.php file. --- Model/Data/Email.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/Data/Email.php b/Model/Data/Email.php index 75091388e..e0a9c7727 100644 --- a/Model/Data/Email.php +++ b/Model/Data/Email.php @@ -1,6 +1,7 @@ Date: Tue, 23 Jul 2024 12:34:47 +0700 Subject: [PATCH 4/4] Add AllowDynamicProperties to some more files. --- Block/Adminhtml/System/Config/Fieldset/Payment.php | 1 + Controller/Adminhtml/Ordersync/Index.php | 1 + Controller/Cards/DeleteAction.php | 1 + Controller/Cards/ListAction.php | 1 + 4 files changed, 4 insertions(+) diff --git a/Block/Adminhtml/System/Config/Fieldset/Payment.php b/Block/Adminhtml/System/Config/Fieldset/Payment.php index 0162ac465..875c30a8f 100644 --- a/Block/Adminhtml/System/Config/Fieldset/Payment.php +++ b/Block/Adminhtml/System/Config/Fieldset/Payment.php @@ -4,6 +4,7 @@ /** * Fieldset renderer for Omise solution */ +#[\AllowDynamicProperties] class Payment extends \Magento\Config\Block\System\Config\Form\Fieldset { /** diff --git a/Controller/Adminhtml/Ordersync/Index.php b/Controller/Adminhtml/Ordersync/Index.php index dd24f736f..d74ef1e9e 100644 --- a/Controller/Adminhtml/Ordersync/Index.php +++ b/Controller/Adminhtml/Ordersync/Index.php @@ -11,6 +11,7 @@ use Omise\Payment\Helper\OmiseHelper as Helper; use Omise\Payment\Model\SyncStatus; +#[\AllowDynamicProperties] class Index extends \Magento\Backend\App\Action { /** diff --git a/Controller/Cards/DeleteAction.php b/Controller/Cards/DeleteAction.php index 6cd0d154d..a0b6cdd1b 100644 --- a/Controller/Cards/DeleteAction.php +++ b/Controller/Cards/DeleteAction.php @@ -3,6 +3,7 @@ use Magento\Framework\App\Request\Http; +#[\AllowDynamicProperties] class DeleteAction extends \Magento\Framework\App\Action\Action { const WRONG_REQUEST = 1; diff --git a/Controller/Cards/ListAction.php b/Controller/Cards/ListAction.php index 18de4b356..18dc9fbf5 100644 --- a/Controller/Cards/ListAction.php +++ b/Controller/Cards/ListAction.php @@ -1,6 +1,7 @@