omise / omise-woocommerce

Omise WooCommerce Plugin
https://docs.opn.ooo/woocommerce-plugin
MIT License
47 stars 27 forks source link

[ENGA3-438]: Turn the function validateRequest to static #310

Closed aashishgurung closed 2 years ago

aashishgurung commented 2 years ago

1. Objective

Turn the function validateRequest to static as it is used statically in the class-omise-callback else it won't work in PHP 8 and above.

PHP Fatal error:  Uncaught Error: Non-static method RequestHelper::validateRequest() cannot be called statically.

Reference:

🔧 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