Skip to content

Commit

Permalink
Fix rtrim deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lumnn committed Aug 21, 2023
1 parent d4de9a8 commit eabe956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Output/DecimalFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eabe956

Please sign in to comment.