apply rector rules

This commit is contained in:
2025-10-30 01:20:52 +01:00
parent 7a790d43ec
commit 14d65fa931
91 changed files with 306 additions and 571 deletions

View File

@@ -22,6 +22,8 @@ use Doctrine\Persistence\ManagerRegistry;
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*
* @extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository<\Chill\BudgetBundle\Entity\Charge>
*/
class ChargeRepository extends ServiceEntityRepository
{
@@ -59,10 +61,7 @@ class ChargeRepository extends ServiceEntityRepository
$qb->orderBy($sort);
}
$qb->setParameters([
'entity' => $entity,
'date' => $date,
]);
$qb->setParameters(new \Doctrine\Common\Collections\ArrayCollection([new \Doctrine\ORM\Query\Parameter('entity', $entity), new \Doctrine\ORM\Query\Parameter('date', $date)]));
return $qb->getQuery()->getResult();
}

View File

@@ -22,6 +22,8 @@ use Doctrine\Persistence\ManagerRegistry;
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*
* @extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository<\Chill\BudgetBundle\Entity\Resource>
*/
class ResourceRepository extends ServiceEntityRepository
{
@@ -59,10 +61,7 @@ class ResourceRepository extends ServiceEntityRepository
$qb->orderBy($sort);
}
$qb->setParameters([
'entity' => $entity,
'date' => $date,
]);
$qb->setParameters(new \Doctrine\Common\Collections\ArrayCollection([new \Doctrine\ORM\Query\Parameter('entity', $entity), new \Doctrine\ORM\Query\Parameter('date', $date)]));
return $qb->getQuery()->getResult();
}

View File

@@ -69,7 +69,7 @@ class BudgetElementVoter extends Voter implements ProvideRoleHierarchyInterface
return $this->voter->supports($attribute, $subject);
}
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, ?\Symfony\Component\Security\Core\Authorization\Voter\Vote $vote = null): bool
{
if (
$subject instanceof Person