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
24
if (null === $method->/** @scrutinizer ignore-call */ getDefaultCategory()) {
Loading history...
25
return $this->getMealVoucherFromItem($item);
26
} else {
27
return $method->getDefaultCategory()->getName();
28
}
29
}
30
31
return null;
32
}
33
34
private function getMealVoucherFromItem(OrderItemInterface $item)
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
38
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...
39
throw new \LogicException(\sprintf('No product category found in product name %s', $product->getName()));