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.
Loading history...
32
->where('o.token = :token')
33
->setParameter('token', $token)
34
->getQuery()
35
->getOneOrNullResult()
36
;
37
}
38
39
public function findAllByShopUser(int $shopUser): ?array
The expression return $this->createQuer...getQuery()->getResult() could return the type integer which is incompatible with the type-hinted return array|null. Consider adding an additional type-check to rule them out.
Loading history...
42
->where('o.shopUser = :shopUser')
43
->setParameter('shopUser', $shopUser)
44
->getQuery()
45
->getResult()
46
;
47
}
48
49
public function findAllByAnonymous(?string $token): ?array
The expression return $this->createQuer...getQuery()->getResult() could return the type integer which is incompatible with the type-hinted return array|null. Consider adding an additional type-check to rule them out.