diff --git a/Validator/AuthorizationValidator.php b/Validator/AuthorizationValidator.php index ac889bff..f84fdb6c 100644 --- a/Validator/AuthorizationValidator.php +++ b/Validator/AuthorizationValidator.php @@ -10,11 +10,9 @@ class AuthorizationValidator extends ConstraintValidator { - protected AuthorizerInterface $authorizer; - - public function __construct(AuthorizerInterface $authorizer) - { - $this->authorizer = $authorizer; + public function __construct( + protected AuthorizerInterface $authorizer + ) { } /** diff --git a/Validator/ReplyAuthorizationValidator.php b/Validator/ReplyAuthorizationValidator.php index c2fbaaa3..18ae59e0 100644 --- a/Validator/ReplyAuthorizationValidator.php +++ b/Validator/ReplyAuthorizationValidator.php @@ -11,13 +11,10 @@ class ReplyAuthorizationValidator extends ConstraintValidator { - protected AuthorizerInterface $authorizer; - protected ParticipantProviderInterface $participantProvider; - - public function __construct(AuthorizerInterface $authorizer, ParticipantProviderInterface $participantProvider) - { - $this->authorizer = $authorizer; - $this->participantProvider = $participantProvider; + public function __construct( + protected AuthorizerInterface $authorizer, + protected ParticipantProviderInterface $participantProvider + ) { } /** diff --git a/Validator/SelfRecipientValidator.php b/Validator/SelfRecipientValidator.php index 3808663e..004827b4 100644 --- a/Validator/SelfRecipientValidator.php +++ b/Validator/SelfRecipientValidator.php @@ -10,11 +10,9 @@ class SelfRecipientValidator extends ConstraintValidator { - protected ParticipantProviderInterface $participantProvider; - - public function __construct(ParticipantProviderInterface $participantProvider) - { - $this->participantProvider = $participantProvider; + public function __construct( + protected ParticipantProviderInterface $participantProvider + ) { } /** diff --git a/Validator/SpamValidator.php b/Validator/SpamValidator.php index 64ff76f9..dcd989eb 100644 --- a/Validator/SpamValidator.php +++ b/Validator/SpamValidator.php @@ -10,11 +10,9 @@ class SpamValidator extends ConstraintValidator { - protected SpamDetectorInterface $spamDetector; - - public function __construct(SpamDetectorInterface $spamDetector) - { - $this->spamDetector = $spamDetector; + public function __construct( + protected SpamDetectorInterface $spamDetector + ) { } /**