From 627dc88053d3759b916883459958ec0e2ae24437 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Mon, 26 Apr 2021 15:09:18 +0200 Subject: [PATCH] Fix type --- src/Util/ShippingOption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/ShippingOption.php b/src/Util/ShippingOption.php index b1891fd..9c9cada 100644 --- a/src/Util/ShippingOption.php +++ b/src/Util/ShippingOption.php @@ -106,7 +106,7 @@ private function processShippingMethod() { $this->id = $this->shipping->getId(); $this->name = $this->shipping->getLabel(); - $this->description = strip_tags($this->shipping->getNote()); + $this->description = strip_tags((string) $this->shipping->getNote()); $this->price = (int) round($this->shipping->getPrice() * 100, 0); $this->shipping_method = $this->shipping->klarna_shipping_method ?: self::METHOD_OWN;