From 076c3270d43cc2047ee82387f7b25b9031dab5af Mon Sep 17 00:00:00 2001 From: roadiz-ci Date: Fri, 22 Nov 2024 08:48:06 +0000 Subject: [PATCH] test: Allow testing on php 8.4 --- src/EventSubscriber/UserSignedUpSubscriber.php | 4 ++-- src/Manager/UserMetadataManager.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EventSubscriber/UserSignedUpSubscriber.php b/src/EventSubscriber/UserSignedUpSubscriber.php index 092c6af..5aeb9f3 100644 --- a/src/EventSubscriber/UserSignedUpSubscriber.php +++ b/src/EventSubscriber/UserSignedUpSubscriber.php @@ -8,10 +8,10 @@ use RZ\Roadiz\UserBundle\Manager\UserValidationTokenManagerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -final class UserSignedUpSubscriber implements EventSubscriberInterface +final readonly class UserSignedUpSubscriber implements EventSubscriberInterface { public function __construct( - private readonly UserValidationTokenManagerInterface $userValidationTokenManager, + private UserValidationTokenManagerInterface $userValidationTokenManager, ) { } diff --git a/src/Manager/UserMetadataManager.php b/src/Manager/UserMetadataManager.php index f9dc858..754e8dd 100644 --- a/src/Manager/UserMetadataManager.php +++ b/src/Manager/UserMetadataManager.php @@ -8,9 +8,9 @@ use RZ\Roadiz\CoreBundle\Entity\User; use RZ\Roadiz\UserBundle\Entity\UserMetadata; -class UserMetadataManager implements UserMetadataManagerInterface +readonly class UserMetadataManager implements UserMetadataManagerInterface { - public function __construct(private readonly ManagerRegistry $managerRegistry) + public function __construct(private ManagerRegistry $managerRegistry) { }