apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -25,7 +25,7 @@ use function in_array;
class AccompanyingPeriodValidityValidator extends ConstraintValidator
{
public function __construct(private ActivityRepository $activityRepository, private SocialIssueRender $socialIssueRender, private TokenStorageInterface $token)
public function __construct(private readonly ActivityRepository $activityRepository, private readonly SocialIssueRender $socialIssueRender, private readonly TokenStorageInterface $token)
{
}

View File

@@ -20,7 +20,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
class LocationValidityValidator extends ConstraintValidator
{
public function __construct(private PersonRenderInterface $render)
public function __construct(private readonly PersonRenderInterface $render)
{
}

View File

@@ -26,7 +26,7 @@ class ParticipationOverlapValidator extends ConstraintValidator
{
private const MAX_PARTICIPATION = 1;
public function __construct(private PersonRenderInterface $personRender, private ThirdPartyRender $thirdpartyRender)
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender)
{
}

View File

@@ -24,7 +24,7 @@ use function in_array;
class ResourceDuplicateCheckValidator extends ConstraintValidator
{
public function __construct(private PersonRenderInterface $personRender, private ThirdPartyRender $thirdpartyRender)
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender)
{
}