fixes after merge of master into upgrade-sf4

This commit is contained in:
2024-02-12 22:31:16 +01:00
parent 37af488f69
commit f889d67e94
664 changed files with 795 additions and 1980 deletions

View File

@@ -23,9 +23,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
class AccompanyingPeriodValidityValidator extends ConstraintValidator
{
public function __construct(private readonly ActivityRepository $activityRepository, private readonly SocialIssueRender $socialIssueRender, private readonly TokenStorageInterface $token)
{
}
public function __construct(private readonly ActivityRepository $activityRepository, private readonly SocialIssueRender $socialIssueRender, private readonly TokenStorageInterface $token) {}
public function validate($period, Constraint $constraint)
{

View File

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

View File

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

View File

@@ -21,9 +21,7 @@ use Symfony\Component\Validator\ConstraintValidator;
class ResourceDuplicateCheckValidator extends ConstraintValidator
{
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender)
{
}
public function __construct(private readonly PersonRenderInterface $personRender, private readonly ThirdPartyRender $thirdpartyRender) {}
public function validate($resources, Constraint $constraint)
{

View File

@@ -24,9 +24,7 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
*/
class HouseholdMembershipSequentialValidator extends ConstraintValidator
{
public function __construct(private readonly PersonRenderInterface $render)
{
}
public function __construct(private readonly PersonRenderInterface $render) {}
public function validate($person, Constraint $constraint)
{

View File

@@ -20,9 +20,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
class RelationshipNoDuplicateValidator extends ConstraintValidator
{
public function __construct(private readonly RelationshipRepository $relationshipRepository)
{
}
public function __construct(private readonly RelationshipRepository $relationshipRepository) {}
public function validate($value, Constraint $constraint)
{