The method getMethodId() does not exist on BitBag\SyliusMolliePlugi...eGatewayConfigInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to BitBag\SyliusMolliePlugi...eGatewayConfigInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
23
if ($method->/** @scrutinizer ignore-call */ getMethodId() === MealVoucher::MEAL_VOUCHERS) {
The method getDefaultCategory() does not exist on BitBag\SyliusMolliePlugi...eGatewayConfigInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to BitBag\SyliusMolliePlugi...eGatewayConfigInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
32
if (null === $method->/** @scrutinizer ignore-call */ getDefaultCategory()) {
Loading history...
33
return $this->getMealVoucherFromItem($item);
34
} else {
35
return $method->getDefaultCategory()->getName();
36
}
37
}
38
39
private function getMealVoucherFromItem(OrderItemInterface $item): string
The method getProductType() does not exist on Sylius\Component\Core\Model\ProductInterface. Did you maybe mean getProductTaxons()?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
43
if (null === $product->/** @scrutinizer ignore-call */ getProductType()) {
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
44
throw new \LogicException(\sprintf('No product category found in product name %s', $product->getName()));