diff --git a/src/Autocomplete/src/AutocompleterRegistry.php b/src/Autocomplete/src/AutocompleterRegistry.php index 2e7535f744f..31f81c21de7 100644 --- a/src/Autocomplete/src/AutocompleterRegistry.php +++ b/src/Autocomplete/src/AutocompleterRegistry.php @@ -19,7 +19,7 @@ final class AutocompleterRegistry { public function __construct( - private ServiceLocator $autocompletersLocator + private ServiceLocator $autocompletersLocator, ) { } diff --git a/src/Autocomplete/src/Doctrine/DoctrineRegistryWrapper.php b/src/Autocomplete/src/Doctrine/DoctrineRegistryWrapper.php index 04500a0cf87..5c389020258 100644 --- a/src/Autocomplete/src/Doctrine/DoctrineRegistryWrapper.php +++ b/src/Autocomplete/src/Doctrine/DoctrineRegistryWrapper.php @@ -23,7 +23,7 @@ class DoctrineRegistryWrapper { public function __construct( - private ?ManagerRegistry $registry = null + private ?ManagerRegistry $registry = null, ) { } diff --git a/src/Autocomplete/src/Doctrine/EntityMetadata.php b/src/Autocomplete/src/Doctrine/EntityMetadata.php index 1275d031a20..6a5807fb5c9 100644 --- a/src/Autocomplete/src/Doctrine/EntityMetadata.php +++ b/src/Autocomplete/src/Doctrine/EntityMetadata.php @@ -19,7 +19,7 @@ class EntityMetadata { public function __construct( - private ClassMetadata $metadata + private ClassMetadata $metadata, ) { } diff --git a/src/Autocomplete/src/Doctrine/EntityMetadataFactory.php b/src/Autocomplete/src/Doctrine/EntityMetadataFactory.php index 5a11119cd84..8526a05c086 100644 --- a/src/Autocomplete/src/Doctrine/EntityMetadataFactory.php +++ b/src/Autocomplete/src/Doctrine/EntityMetadataFactory.php @@ -20,7 +20,7 @@ class EntityMetadataFactory { public function __construct( - private DoctrineRegistryWrapper $doctrine + private DoctrineRegistryWrapper $doctrine, ) { } diff --git a/src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php b/src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php index 1449460a538..e528953a228 100644 --- a/src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php +++ b/src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php @@ -28,7 +28,7 @@ final class AutocompleteEntityTypeSubscriber implements EventSubscriberInterface { public function __construct( - private ?string $autocompleteUrl = null + private ?string $autocompleteUrl = null, ) { } diff --git a/src/Autocomplete/src/Form/ParentEntityAutocompleteType.php b/src/Autocomplete/src/Form/ParentEntityAutocompleteType.php index d07e89e680b..417af9e693d 100644 --- a/src/Autocomplete/src/Form/ParentEntityAutocompleteType.php +++ b/src/Autocomplete/src/Form/ParentEntityAutocompleteType.php @@ -29,7 +29,7 @@ final class ParentEntityAutocompleteType extends AbstractType implements DataMapperInterface { public function __construct( - private UrlGeneratorInterface $urlGenerator + private UrlGeneratorInterface $urlGenerator, ) { } diff --git a/src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php b/src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php index 663a7ed80bc..61bb2bd8b68 100644 --- a/src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php +++ b/src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php @@ -39,7 +39,7 @@ public function __construct( private FormFactoryInterface $formFactory, private EntityMetadataFactory $metadataFactory, private PropertyAccessorInterface $propertyAccessor, - private EntitySearchUtil $entitySearchUtil + private EntitySearchUtil $entitySearchUtil, ) { } diff --git a/src/Autocomplete/src/Maker/MakeAutocompleteField.php b/src/Autocomplete/src/Maker/MakeAutocompleteField.php index 5306bc96522..acf42cf0f7b 100644 --- a/src/Autocomplete/src/Maker/MakeAutocompleteField.php +++ b/src/Autocomplete/src/Maker/MakeAutocompleteField.php @@ -39,7 +39,7 @@ class MakeAutocompleteField extends AbstractMaker private string $entityClass; public function __construct( - private ?DoctrineHelper $doctrineHelper = null + private ?DoctrineHelper $doctrineHelper = null, ) { } diff --git a/src/LiveComponent/src/Attribute/AsLiveComponent.php b/src/LiveComponent/src/Attribute/AsLiveComponent.php index 7513df39fe6..7bc445d1286 100644 --- a/src/LiveComponent/src/Attribute/AsLiveComponent.php +++ b/src/LiveComponent/src/Attribute/AsLiveComponent.php @@ -41,7 +41,7 @@ public function __construct( bool $exposePublicProps = true, string $attributesVar = 'attributes', public bool $csrf = true, - public string $route = 'ux_live_component' + public string $route = 'ux_live_component', ) { parent::__construct($name, $template, $exposePublicProps, $attributesVar); } diff --git a/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php b/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php index a71c922f63a..52ce1c06faf 100644 --- a/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php +++ b/src/LiveComponent/src/EventListener/ResetDeterministicIdSubscriber.php @@ -44,7 +44,7 @@ final class ResetDeterministicIdSubscriber implements EventSubscriberInterface { public function __construct( private DeterministicTwigIdCalculator $idCalculator, - private ComponentStack $componentStack + private ComponentStack $componentStack, ) { } diff --git a/src/React/src/AssetMapper/ReactReplaceProcessEnvAssetCompiler.php b/src/React/src/AssetMapper/ReactReplaceProcessEnvAssetCompiler.php index e644f55fb71..63bf63bd98b 100644 --- a/src/React/src/AssetMapper/ReactReplaceProcessEnvAssetCompiler.php +++ b/src/React/src/AssetMapper/ReactReplaceProcessEnvAssetCompiler.php @@ -23,7 +23,7 @@ class ReactReplaceProcessEnvAssetCompiler implements AssetCompilerInterface { public function __construct( - private bool $isDebug + private bool $isDebug, ) { } diff --git a/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php b/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php index ee0ac86700e..8d8034565b4 100644 --- a/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php +++ b/src/StimulusBundle/src/AssetMapper/MappedControllerAutoImport.php @@ -20,7 +20,7 @@ class MappedControllerAutoImport { public function __construct( public string $path, - public bool $isBareImport + public bool $isBareImport, ) { } } diff --git a/src/Translator/src/Intl/IntlMessageParser.php b/src/Translator/src/Intl/IntlMessageParser.php index 414678f4fb6..96298186032 100644 --- a/src/Translator/src/Intl/IntlMessageParser.php +++ b/src/Translator/src/Intl/IntlMessageParser.php @@ -246,7 +246,7 @@ private function tryParseQuote(string $parentArgType): string|null private function tryParseUnquoted( int $nestingLevel, - string $parentArgType + string $parentArgType, ): string|null { if ($this->isEOF()) { return null; @@ -273,7 +273,7 @@ private function tryParseUnquoted( */ private function parseArgument( int $nestingLevel, - bool $expectingCloseTag + bool $expectingCloseTag, ): array { $openingBracePosition = clone $this->position; $this->bump(); // `{` @@ -381,7 +381,7 @@ private function parseArgumentOptions( int $nestingLevel, bool $expectingCloseTag, string $value, - Position $openingBracePosition + Position $openingBracePosition, ): array { // Parse this range: // {name, type, style} @@ -611,7 +611,7 @@ private function parseArgumentOptions( } private function tryParseArgumentClose( - Position $openingBracePosition + Position $openingBracePosition, ): array { // Parse: {value, number, ::currency/GBP } // @@ -683,7 +683,7 @@ private function parseSimpleArgStyleIfPossible(): array private function parseNumberSkeletonFromString( string $skeleton, - Location $location + Location $location, ) { $tokens = []; @@ -712,7 +712,7 @@ private function tryParsePluralOrSelectOptions( int $nestingLevel, string $parentArgType, bool $expectCloseTag, - array $parsedFirstIdentifier + array $parsedFirstIdentifier, ): array { $hasOtherClause = false; $options = []; diff --git a/src/TwigComponent/src/ComponentFactory.php b/src/TwigComponent/src/ComponentFactory.php index e138879a321..4f9767d42a3 100644 --- a/src/TwigComponent/src/ComponentFactory.php +++ b/src/TwigComponent/src/ComponentFactory.php @@ -35,7 +35,7 @@ public function __construct( private PropertyAccessorInterface $propertyAccessor, private EventDispatcherInterface $eventDispatcher, private array $config, - private array $classMap + private array $classMap, ) { } diff --git a/src/TwigComponent/src/ComponentRenderer.php b/src/TwigComponent/src/ComponentRenderer.php index 4a617da8682..d45e95c61ff 100644 --- a/src/TwigComponent/src/ComponentRenderer.php +++ b/src/TwigComponent/src/ComponentRenderer.php @@ -34,7 +34,7 @@ public function __construct( private EventDispatcherInterface $dispatcher, private ComponentFactory $factory, private PropertyAccessorInterface $propertyAccessor, - private ComponentStack $componentStack + private ComponentStack $componentStack, ) { } diff --git a/src/TwigComponent/src/Event/PostMountEvent.php b/src/TwigComponent/src/Event/PostMountEvent.php index 0706655833a..e8783fcb9de 100644 --- a/src/TwigComponent/src/Event/PostMountEvent.php +++ b/src/TwigComponent/src/Event/PostMountEvent.php @@ -26,7 +26,7 @@ public function __construct( private object $component, private array $data, array|ComponentMetadata $metadata = [], - $extraMetadata = [] + $extraMetadata = [], ) { if (\is_array($metadata)) { trigger_deprecation('symfony/ux-twig-component', '2.13', 'In TwigComponent 3.0, the third argument of "%s()" will be a "%s" object and the "$extraMetadata" array should be passed as the fourth argument.', __METHOD__, ComponentMetadata::class); diff --git a/src/TwigComponent/src/Event/PreCreateForRenderEvent.php b/src/TwigComponent/src/Event/PreCreateForRenderEvent.php index e1430da47da..3f1466b0138 100644 --- a/src/TwigComponent/src/Event/PreCreateForRenderEvent.php +++ b/src/TwigComponent/src/Event/PreCreateForRenderEvent.php @@ -24,7 +24,7 @@ final class PreCreateForRenderEvent extends Event public function __construct( private string $name, - private array $inputProps = [] + private array $inputProps = [], ) { } diff --git a/src/TwigComponent/src/Event/PreRenderEvent.php b/src/TwigComponent/src/Event/PreRenderEvent.php index ac286e479b6..43545a50d4e 100644 --- a/src/TwigComponent/src/Event/PreRenderEvent.php +++ b/src/TwigComponent/src/Event/PreRenderEvent.php @@ -38,7 +38,7 @@ final class PreRenderEvent extends Event public function __construct( private MountedComponent $mounted, private ComponentMetadata $metadata, - private array $variables + private array $variables, ) { $this->template = $this->metadata->getTemplate(); $this->parentTemplateForEmbedded = $this->template; diff --git a/src/TwigComponent/src/Twig/TwigEnvironmentConfigurator.php b/src/TwigComponent/src/Twig/TwigEnvironmentConfigurator.php index 02d8c0fadbd..d553193344b 100644 --- a/src/TwigComponent/src/Twig/TwigEnvironmentConfigurator.php +++ b/src/TwigComponent/src/Twig/TwigEnvironmentConfigurator.php @@ -19,7 +19,7 @@ class TwigEnvironmentConfigurator private EnvironmentConfigurator $decorated; public function __construct( - EnvironmentConfigurator $decorated + EnvironmentConfigurator $decorated, ) { $this->decorated = $decorated; }