razorpay / razorpay-woocommerce

Razorpay Payment Extension for Woocommerce
https://wordpress.org/plugins/woo-razorpay/
GNU General Public License v2.0
40 stars 30 forks source link

One cc cron db update fix: php v8.2 #459

Closed Anantha-Perumal closed 1 year ago

Anantha-Perumal commented 1 year ago

Note :- Please follow the below points while attaching test cases document link below:

- If label Tested is added then test cases document URL is mandatory.

- Link added should be a valid URL and accessible throughout the org.

- If the branch name contains hotfix / revert by default the BVT workflow check will pass.

Test Case Document URL
Please paste test case document link here....
angbpy commented 1 year ago

@Anantha-Perumal Can you explain the changes here ? Why it was breaking and what fixed it

Anantha-Perumal commented 1 year ago

@angbpy We are fetching data from DB by get_option if data is not there it will return false but we are accessing the value as an array. Hence while accessing the boolean value typed variable as an array in PHP 8.2, it throws a warning hence making the variable an array if data is not present. For exact warning message please refer here