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...
24
->where('o.shopUser = :shopUser')
25
->setParameter('shopUser', $shopUser)
26
->getQuery()
27
->getOneOrNullResult()
28
;
29
}
30
31
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.