From ef7f6ad076d76bbde9baa99515b9dfbfac493c92 Mon Sep 17 00:00:00 2001 From: Stas Demin Date: Thu, 26 Dec 2024 12:57:37 +0300 Subject: [PATCH] fix: ternary operator changes --- src/ShippingMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShippingMethod.php b/src/ShippingMethod.php index bbb8875..7bb0337 100644 --- a/src/ShippingMethod.php +++ b/src/ShippingMethod.php @@ -116,7 +116,7 @@ public static function factory(?int $instanceId = null): self } } - return static::$instance ?? WC()->shipping()->load_shipping_methods()[Config::DELIVERY_NAME]; + return static::$instance ?: WC()->shipping()->load_shipping_methods()[Config::DELIVERY_NAME]; } /** @noinspection MissingReturnTypeInspection */