mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-22 05:38:08 +00:00
Rector changes return typing
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -78,7 +78,7 @@ class PersonRepository implements ObjectRepository
|
||||
$firstResult,
|
||||
$maxResults,
|
||||
array $only = ['mobile', 'phone'],
|
||||
) {
|
||||
): mixed {
|
||||
$qb = $this->repository->createQueryBuilder('p');
|
||||
$qb->select('p');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user