Rector changes return typing

This commit is contained in:
2025-08-27 16:32:44 +02:00
parent da240f5ce5
commit 979b2955f6
93 changed files with 164 additions and 180 deletions

View File

@@ -51,7 +51,7 @@ final readonly class ClosingMotiveRepository implements ClosingMotiveRepositoryI
return $this->findOneBy($criteria);
}
public function getActiveClosingMotive(bool $onlyLeaf = true)
public function getActiveClosingMotive(bool $onlyLeaf = true): mixed
{
$rsm = new ResultSetMappingBuilder($this->entityManager);
$rsm->addRootEntityFromClassMetadata($this->repository->getClassName(), 'cm');

View File

@@ -85,7 +85,7 @@ final readonly class HouseholdRepository implements ObjectRepository
return Household::class;
}
private function buildQueryByAccompanyingPeriodParticipation(Person $person, bool $isCount = false, int $limit = 50, int $offset = 0)
private function buildQueryByAccompanyingPeriodParticipation(Person $person, bool $isCount = false, int $limit = 50, int $offset = 0): mixed
{
$rsm = new ResultSetMappingBuilder($this->em);
$rsm->addRootEntityFromClassMetadata(Household::class, 'h');

View File

@@ -78,7 +78,7 @@ class PersonRepository implements ObjectRepository
$firstResult,
$maxResults,
array $only = ['mobile', 'phone'],
) {
): mixed {
$qb = $this->repository->createQueryBuilder('p');
$qb->select('p');