The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return BitBag\SyliusShippingExp...ngGatewayInterface|null. Consider adding an additional type-check to rule them out.
Loading history...
28
->where('o.code = :code')
29
->setParameter('code', $code)
30
->getQuery()
31
->getOneOrNullResult()
32
;
33
}
34
35
public function findOneByShippingMethod(ShippingMethodInterface $shippingMethod): ?ShippingGatewayInterface
The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return BitBag\SyliusShippingExp...ngGatewayInterface|null. Consider adding an additional type-check to rule them out.
Loading history...
38
->where(':shippingMethod MEMBER OF o.shippingMethods')