Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dynamic property deprecation error for PHP 8.2 and 8.3 #485

Merged
merged 5 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading