DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -25,17 +25,8 @@ use function in_array;
class AccompanyingPeriodValidityValidator extends ConstraintValidator
{
private ActivityRepository $activityRepository;
private SocialIssueRender $socialIssueRender;
private TokenStorageInterface $token;
public function __construct(ActivityRepository $activityRepository, SocialIssueRender $socialIssueRender, TokenStorageInterface $token)
public function __construct(private ActivityRepository $activityRepository, private SocialIssueRender $socialIssueRender, private TokenStorageInterface $token)
{
$this->activityRepository = $activityRepository;
$this->socialIssueRender = $socialIssueRender;
$this->token = $token;
}
public function validate($period, Constraint $constraint)

View File

@@ -20,11 +20,8 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
class LocationValidityValidator extends ConstraintValidator
{
private PersonRenderInterface $render;
public function __construct(PersonRenderInterface $render)
public function __construct(private PersonRenderInterface $render)
{
$this->render = $render;
}
public function validate($period, Constraint $constraint)

View File

@@ -26,14 +26,8 @@ class ParticipationOverlapValidator extends ConstraintValidator
{
private const MAX_PARTICIPATION = 1;
private PersonRenderInterface $personRender;
private ThirdPartyRender $thirdpartyRender;
public function __construct(PersonRenderInterface $personRender, ThirdPartyRender $thirdPartyRender)
public function __construct(private PersonRenderInterface $personRender, private ThirdPartyRender $thirdpartyRender)
{
$this->personRender = $personRender;
$this->thirdpartyRender = $thirdPartyRender;
}
public function validate($participations, Constraint $constraint)

View File

@@ -24,14 +24,8 @@ use function in_array;
class ResourceDuplicateCheckValidator extends ConstraintValidator
{
private PersonRenderInterface $personRender;
private ThirdPartyRender $thirdpartyRender;
public function __construct(PersonRenderInterface $personRender, ThirdPartyRender $thirdPartyRender)
public function __construct(private PersonRenderInterface $personRender, private ThirdPartyRender $thirdpartyRender)
{
$this->personRender = $personRender;
$this->thirdpartyRender = $thirdPartyRender;
}
public function validate($resources, Constraint $constraint)