From d83ed5b6595d5fdb9a255bfaa1f1a0198c4d09e4 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 1 Nov 2022 16:34:08 +0100 Subject: [PATCH] fixed return type of findOneRandom --- src/Repository/QuotesRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/QuotesRepository.php b/src/Repository/QuotesRepository.php index c84ca94..1e3b7a3 100644 --- a/src/Repository/QuotesRepository.php +++ b/src/Repository/QuotesRepository.php @@ -38,7 +38,7 @@ class QuotesRepository extends ServiceEntityRepository } } - public function findOneRandom(): ?QueryBuilder + public function findOneRandom(): ?Quotes { try { $idLimits = $this->createQueryBuilder(alias: 'q')