mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Rector changes: repositories become final readonly classes
This commit is contained in:
@@ -18,7 +18,7 @@ use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\Query\ResultSetMappingBuilder;
|
||||
use Doctrine\Persistence\ObjectRepository;
|
||||
|
||||
final class HouseholdRepository implements ObjectRepository
|
||||
final readonly class HouseholdRepository implements ObjectRepository
|
||||
{
|
||||
private const SQL_BY_ACCOMPANYING_PERIOD_PARTICIPATION = <<<'SQL'
|
||||
WITH participations AS (
|
||||
@@ -40,9 +40,9 @@ final class HouseholdRepository implements ObjectRepository
|
||||
SELECT {select} FROM households {limits}
|
||||
SQL;
|
||||
|
||||
private readonly EntityManagerInterface $em;
|
||||
private EntityManagerInterface $em;
|
||||
|
||||
private readonly EntityRepository $repository;
|
||||
private EntityRepository $repository;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager)
|
||||
{
|
||||
|
Reference in New Issue
Block a user