Skip to content

Commit

Permalink
Add AllowDynamicProperties attribute to resolve deprecation error for…
Browse files Browse the repository at this point in the history
… dynamic property.
  • Loading branch information
aashishgurung committed Jul 17, 2024
1 parent b2e9776 commit 87260cc
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Block/Adminhtml/System/Config/Form/Field/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Magento\Store\Model\StoreManagerInterface;
use Magento\Framework\App\Request\Http;

#[\AllowDynamicProperties]
class Webhook extends Field
{
/**
Expand Down
1 change: 1 addition & 0 deletions Block/Checkout/Onepage/Success/AdditionalInformation.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Omise\Payment\Block\Checkout\Onepage\Success;

#[\AllowDynamicProperties]
class AdditionalInformation extends \Magento\Framework\View\Element\Template
{
/**
Expand Down
1 change: 1 addition & 0 deletions Controller/Callback/Offsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Psr\Log\LoggerInterface;
use Magento\Framework\App\Request\Http;

#[\AllowDynamicProperties]
class Offsite extends Action
{
/**
Expand Down
1 change: 1 addition & 0 deletions Controller/Callback/Threedsecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Psr\Log\LoggerInterface;
use Magento\Framework\App\Request\Http;

#[\AllowDynamicProperties]
class Threedsecure extends Action
{
/**
Expand Down
1 change: 1 addition & 0 deletions Controller/Payment/Complete.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Omise\Payment\Controller\Payment;

#[\AllowDynamicProperties]
class Complete extends \Magento\Framework\App\Action\Action
{
/**
Expand Down
1 change: 1 addition & 0 deletions Cron/OrderSyncStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Magento\Framework\App\Config\ScopeConfigInterface;
use Exception;

#[\AllowDynamicProperties]
class OrderSyncStatus
{
/**
Expand Down
1 change: 1 addition & 0 deletions Helper/ReturnUrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Omise\Payment\Helper\TokenHelper;
use Magento\Framework\UrlInterface;

#[\AllowDynamicProperties]
class ReturnUrlHelper
{
public function __construct(UrlInterface $url, TokenHelper $tokenHelper)
Expand Down
1 change: 1 addition & 0 deletions Model/Api/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use OmiseCustomer;
use Omise\Payment\Model\Config\Config;

#[\AllowDynamicProperties]
class Customer extends BaseObject
{
/**
Expand Down
1 change: 1 addition & 0 deletions Model/Api/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @property Object $data
* @see https://www.omise.co/events-api
*/
#[\AllowDynamicProperties]
class Event extends BaseObject
{
/**
Expand Down
1 change: 1 addition & 0 deletions Model/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Magento\Store\Model\StoreManagerInterface;
use Magento\Sales\Model\Order;

#[\AllowDynamicProperties]
class Config
{
/**
Expand Down
1 change: 1 addition & 0 deletions Model/RefundSyncStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Omise\Payment\Service\CreditMemoService;
use Magento\Sales\Model\Order;

#[\AllowDynamicProperties]
class RefundSyncStatus
{
public function __construct(CreditMemoService $creditMemoService)
Expand Down
1 change: 1 addition & 0 deletions Model/SyncStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Omise\Payment\Model\Config\Cc as Config;
use Omise\Payment\Model\RefundSyncStatus;

#[\AllowDynamicProperties]
class SyncStatus
{
const STATUS_SUCCESSFUL = 'successful';
Expand Down
1 change: 1 addition & 0 deletions Observer/WebhookObserver/WebhookObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Omise\Payment\Model\Config\Config;
use Omise\Payment\Model\Api\Charge as ApiCharge;

#[\AllowDynamicProperties]
abstract class WebhookObserver implements ObserverInterface
{
/**
Expand Down
1 change: 1 addition & 0 deletions Plugin/ConfigSectionPaymentPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Magento\Framework\App\Config\ScopeConfigInterface;
use Exception;

#[\AllowDynamicProperties]
class ConfigSectionPaymentPlugin
{

Expand Down
1 change: 1 addition & 0 deletions Service/CreditMemoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Magento\Sales\Model\Order\Invoice;
use Magento\Sales\Model\Service\CreditmemoService as MagentoCreditmemoService;

#[\AllowDynamicProperties]
class CreditMemoService
{
/**
Expand Down

0 comments on commit 87260cc

Please sign in to comment.