Skip to content

Commit

Permalink
[Next] prepare v5
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Jan 23, 2025
1 parent a06c3aa commit ce749e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ protected function getUnitDefinitionsForProduct(ProductInterface $product, strin
}
}

return $definitions->filter(function (ProductUnitDefinitionInterface $unitDefinition) {
return $definitions->filter(function ($unitDefinition) {
if (!$unitDefinition instanceof ProductUnitDefinitionInterface) {
return false;
}

return null !== $unitDefinition->getId();
});
}
Expand Down

0 comments on commit ce749e9

Please sign in to comment.