woocommerce / woocommerce-gateway-paypal-express-checkout

58 stars 65 forks source link

Use is_callable() instead of method_exists() in check #837

Closed jorgeatorres closed 3 years ago

jorgeatorres commented 3 years ago

Issue: #829

Description

After doing some code analysis and smoke tests I didn't notice any major problems with PHP 8 and PPEC.

The only change I'm pushing modifies a check so that it uses is_callable() instead of method_exists(). This is probably not necessary but better to err on the side of caution.

Closes #829.

jorgeatorres commented 3 years ago

Self-merging as this is an innocuous change.