apply rector rules: php up to php82

This commit is contained in:
2023-07-19 23:16:01 +02:00
parent 7b637d1287
commit 023a29cb78
744 changed files with 1369 additions and 1381 deletions

View File

@@ -24,7 +24,7 @@ class HouseholdMenuBuilder implements LocalMenuBuilderInterface
*/
protected $translator;
public function __construct(TranslatorInterface $translator, private Security $security)
public function __construct(TranslatorInterface $translator, private readonly Security $security)
{
$this->translator = $translator;
}

View File

@@ -41,9 +41,9 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
public function __construct(
ParameterBagInterface $parameterBag,
private Security $security,
private readonly Security $security,
protected TranslatorInterface $translator,
private ResidentialAddressRepository $residentialAddressRepo
private readonly ResidentialAddressRepository $residentialAddressRepo
) {
$this->showAccompanyingPeriod = $parameterBag->get('chill_person.accompanying_period');
}

View File

@@ -28,7 +28,7 @@ class SectionMenuBuilder implements LocalMenuBuilderInterface
/**
* SectionMenuBuilder constructor.
*/
public function __construct(protected ParameterBagInterface $parameterBag, private Security $security, protected TranslatorInterface $translator)
public function __construct(protected ParameterBagInterface $parameterBag, private readonly Security $security, protected TranslatorInterface $translator)
{
}