Skip to content

Commit 7827432

Browse files
committed
[BUGFIX] Prevent exception in some rare cases
Resolves: #700
1 parent 31fa0f3 commit 7827432

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Classes/Domain/Repository/AnswerRepository.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
*/
1111
class AnswerRepository extends AbstractRepository
1212
{
13-
1413
/**
1514
* Find single Answer by field uid and mail uid
1615
*
1716
* @param int $fieldUid
1817
* @param int $mailUid
19-
* @return Answer
18+
* @return Answer|null
2019
*/
21-
public function findByFieldAndMail($fieldUid, $mailUid): Answer
20+
public function findByFieldAndMail($fieldUid, $mailUid): ?Answer
2221
{
2322
$query = $this->createQuery();
2423
$query->getQuerySettings()->setRespectStoragePage(false);

0 commit comments

Comments
 (0)