The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return Odiseo\SyliusReferralsPl...AffiliateInterface|null. Consider adding an additional type-check to rule them out.
Loading history...
17
->andWhere('o.customer = :customer')
18
->andWhere('o.product IS NULL')
19
->andWhere('o.expiresAt IS NULL')
20
->setParameter('customer', $customer)
21
->setMaxResults(1)
22
->getQuery()
23
->getOneOrNullResult()
24
;
25
}
26
27
public function findOneByCustomerAndProductNotExpired(
The expression return $this->createQuer...)->getOneOrNullResult() could return the type integer which is incompatible with the type-hinted return Odiseo\SyliusReferralsPl...AffiliateInterface|null. Consider adding an additional type-check to rule them out.