omise / omise-magento

Omise Magento Plugin
https://docs.opn.ooo/magento-plugin
MIT License
34 stars 19 forks source link

[ENGA3-265]: Change array_key_exists to property_exists method to che… #374

Closed aashishgurung closed 2 years ago

aashishgurung commented 2 years ago

1. Objective

Fix the issue of Sync Order Status button not working.

2. Description of change

The array_key_exists() was used to check whether the properties exists in the object or not. Use of array_key_exists() on objects is deprecated. So, it is being replaced by property_exists() method.

3. Quality assurance

Click on the Sync Order Status button. It should not show the following error.

image (2)

🔧 Environments:

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication