mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-23 04:17:45 +00:00
Upgrade php to v8.3 with rector
This commit is contained in:
@@ -50,6 +50,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
* @throws NonUniqueResultException
|
||||
* @throws NoResultException
|
||||
*/
|
||||
#[\Override]
|
||||
public function countByAccompanyingPeriod(AccompanyingPeriod $period, string $role, array $filters = []): int
|
||||
{
|
||||
$qb = $this->buildBaseQuery($filters);
|
||||
@@ -61,6 +62,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
return $qb->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function countByPerson(Person $person, string $role, array $filters = []): int
|
||||
{
|
||||
$qb = $this->buildBaseQuery($filters);
|
||||
@@ -72,6 +74,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
return $qb->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function findByAccompanyingPeriod(AccompanyingPeriod $period, string $role, ?int $start = 0, ?int $limit = 1000, array $orderBy = ['date' => 'DESC'], array $filters = []): array
|
||||
{
|
||||
$qb = $this->buildBaseQuery($filters);
|
||||
@@ -161,6 +164,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
/**
|
||||
* @return array<ActivityType>
|
||||
*/
|
||||
#[\Override]
|
||||
public function findActivityTypeByAssociated(AccompanyingPeriod|Person $associated): array
|
||||
{
|
||||
$in = $this->em->createQueryBuilder();
|
||||
@@ -188,6 +192,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function findUserJobByAssociated(AccompanyingPeriod|Person $associated): array
|
||||
{
|
||||
$in = $this->em->createQueryBuilder();
|
||||
@@ -220,6 +225,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function findByAccompanyingPeriodSimplified(AccompanyingPeriod $period, ?int $limit = 1000): array
|
||||
{
|
||||
$rsm = new ResultSetMappingBuilder($this->em);
|
||||
@@ -302,6 +308,7 @@ final readonly class ActivityACLAwareRepository implements ActivityACLAwareRepos
|
||||
return $nq->getResult(AbstractQuery::HYDRATE_ARRAY);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function findByPerson(Person $person, string $role, ?int $start = 0, ?int $limit = 1000, ?array $orderBy = [], array $filters = []): array
|
||||
{
|
||||
$qb = $this->buildBaseQuery($filters);
|
||||
|
||||
Reference in New Issue
Block a user