Improve type check

This commit is contained in:
Alex P 2021-11-03 10:20:39 +02:00
parent 38ee07e547
commit edd441f5da
3 changed files with 4 additions and 4 deletions

View file

@ -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;
}