mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Improve type check
This commit is contained in:
parent
38ee07e547
commit
edd441f5da
3 changed files with 4 additions and 4 deletions
|
@ -112,7 +112,7 @@ class SubscriptionModule implements ModuleInterface {
|
|||
* @return void
|
||||
*/
|
||||
protected function renew( $order, $container ) {
|
||||
if ( ! is_a( $order, \WC_Order::class ) ) {
|
||||
if ( ! ( $order instanceof \WC_Order ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue