new command to delete empty translations (#3392)

* composer update and phpstan issues
* bump version
This commit is contained in:
Kevin Papst
2022-06-30 14:19:56 +02:00
committed by GitHub
parent 2d9677eefa
commit 196ca4f1cb
7 changed files with 262 additions and 198 deletions

View File

@@ -328,9 +328,11 @@ class TimesheetRepository extends EntityRepository
}
if (\is_array($select)) {
/* @phpstan-ignore-next-line */
return $qb->getQuery()->getOneOrNullResult();
}
/** @phpstan-ignore-next-line */
$result = $qb->getQuery()->getSingleScalarResult();
return empty($result) ? 0 : $result;