The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return BitBag\SyliusWishlistPlu...\WishlistInterface|null. Consider adding an additional type-check to rule them out.
Loading history...
22
->where('o.shopUser = :shopUser')
23
->setParameter('shopUser', $shopUser)
24
->getQuery()
25
->getOneOrNullResult()
26
;
27
}
28
29
public function findByToken(string $token): ?WishlistInterface
The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return BitBag\SyliusWishlistPlu...\WishlistInterface|null. Consider adding an additional type-check to rule them out.