Skip to content

Commit

Permalink
fix: ternary operator changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DEMAxx committed Dec 26, 2024
1 parent d5571ce commit ef7f6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShippingMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ef7f6ad

Please sign in to comment.