From 6cc901d8f21de84a0e47014370e7391168b43291 Mon Sep 17 00:00:00 2001 From: Yasir Turk Date: Fri, 20 Dec 2024 02:26:51 +0100 Subject: [PATCH] Fixes #2041 Crash in ShippingRateResolver::postcode() --- .../table-rate-shipping/src/Resolvers/ShippingRateResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table-rate-shipping/src/Resolvers/ShippingRateResolver.php b/packages/table-rate-shipping/src/Resolvers/ShippingRateResolver.php index 9217e63b85..40fbecbcf9 100644 --- a/packages/table-rate-shipping/src/Resolvers/ShippingRateResolver.php +++ b/packages/table-rate-shipping/src/Resolvers/ShippingRateResolver.php @@ -118,7 +118,7 @@ public function state($state): self /** * Set the value for the postcode. */ - public function postcode(string $postcode): self + public function postcode(?string $postcode): self { $this->postcode = $postcode;