From eabe95651e086046536a219b452742fa0095930b Mon Sep 17 00:00:00 2001 From: Kamil Date: Mon, 21 Aug 2023 12:30:04 +0200 Subject: [PATCH] Fix rtrim deprecation error --- Output/DecimalFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Output/DecimalFormatter.php b/Output/DecimalFormatter.php index 5e29239..64da33c 100644 --- a/Output/DecimalFormatter.php +++ b/Output/DecimalFormatter.php @@ -19,7 +19,7 @@ public function productAttribute(Output $output, $result, array $params) { $attribute = $this->eavConfig->getAttribute(Product::ENTITY, $params['attribute']); - if ($attribute->getBackendType() !== 'decimal') { + if (null === $result || $attribute->getBackendType() !== 'decimal') { return $result; }