From c08cd8e54a08d651bc402d304cfa161c3c3766c4 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 4 Jan 2025 14:58:15 +0100 Subject: [PATCH] Fix CS after merge --- src/Symfony/MessageMap.php | 2 +- src/Symfony/MessageMapFactory.php | 6 ++---- src/Symfony/Service.php | 2 +- src/Symfony/ServiceTag.php | 5 ++--- .../Symfony/MessengerHandleTraitReturnTypeExtension.php | 6 ++---- 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/Symfony/MessageMap.php b/src/Symfony/MessageMap.php index 7523742c..97bb8734 100644 --- a/src/Symfony/MessageMap.php +++ b/src/Symfony/MessageMap.php @@ -8,7 +8,7 @@ final class MessageMap { /** @var array */ - private $messageMap; + private array $messageMap; /** @param array $messageMap */ public function __construct(array $messageMap) diff --git a/src/Symfony/MessageMapFactory.php b/src/Symfony/MessageMapFactory.php index 5c9ef152..3d7663ca 100644 --- a/src/Symfony/MessageMapFactory.php +++ b/src/Symfony/MessageMapFactory.php @@ -17,11 +17,9 @@ final class MessageMapFactory private const MESSENGER_HANDLER_TAG = 'messenger.message_handler'; private const DEFAULT_HANDLER_METHOD = '__invoke'; - /** @var ReflectionProvider */ - private $reflectionProvider; + private ReflectionProvider $reflectionProvider; - /** @var ServiceMap */ - private $serviceMap; + private ServiceMap $serviceMap; public function __construct(ServiceMap $symfonyServiceMap, ReflectionProvider $reflectionProvider) { diff --git a/src/Symfony/Service.php b/src/Symfony/Service.php index 9897f45d..44c0d1d7 100644 --- a/src/Symfony/Service.php +++ b/src/Symfony/Service.php @@ -16,7 +16,7 @@ final class Service implements ServiceDefinition private ?string $alias = null; /** @var ServiceTag[] */ - private $tags; + private array $tags; /** @param ServiceTag[] $tags */ public function __construct( diff --git a/src/Symfony/ServiceTag.php b/src/Symfony/ServiceTag.php index a8437fd1..3b22ee34 100644 --- a/src/Symfony/ServiceTag.php +++ b/src/Symfony/ServiceTag.php @@ -5,11 +5,10 @@ final class ServiceTag implements ServiceTagDefinition { - /** @var string */ - private $name; + private string $name; /** @var array */ - private $attributes; + private array $attributes; /** @param array $attributes */ public function __construct(string $name, array $attributes = []) diff --git a/src/Type/Symfony/MessengerHandleTraitReturnTypeExtension.php b/src/Type/Symfony/MessengerHandleTraitReturnTypeExtension.php index a5dce362..2c7b1fbe 100644 --- a/src/Type/Symfony/MessengerHandleTraitReturnTypeExtension.php +++ b/src/Type/Symfony/MessengerHandleTraitReturnTypeExtension.php @@ -19,11 +19,9 @@ final class MessengerHandleTraitReturnTypeExtension implements ExpressionTypeRes private const TRAIT_NAME = 'Symfony\Component\Messenger\HandleTrait'; private const TRAIT_METHOD_NAME = 'handle'; - /** @var MessageMapFactory */ - private $messageMapFactory; + private MessageMapFactory $messageMapFactory; - /** @var MessageMap|null */ - private $messageMap; + private ?MessageMap $messageMap = null; public function __construct(MessageMapFactory $symfonyMessageMapFactory) {