From f90d2a95c738960271c4487b8b23ad4ca69f73fc Mon Sep 17 00:00:00 2001 From: Wouter de Jong Date: Sun, 2 Jul 2023 13:49:44 +0200 Subject: [PATCH] [Bridges][Bundles] Convert to native return types --- .github/expected-missing-return-types.diff | 1238 +---------------- .../DataCollector/DoctrineDataCollector.php | 35 +- .../AbstractDoctrineExtension.php | 24 +- .../CompilerPass/DoctrineValidationPass.php | 5 +- ...gisterEventListenersAndSubscribersPass.php | 5 +- .../CompilerPass/RegisterMappingsPass.php | 4 +- .../Security/UserProvider/EntityFactory.php | 15 +- .../Doctrine/Form/DoctrineOrmTypeGuesser.php | 2 +- .../MergeDoctrineCollectionListener.php | 5 +- .../Doctrine/Form/Type/DoctrineType.php | 15 +- .../Bridge/Doctrine/Form/Type/EntityType.php | 5 +- ...rineClearEntityManagerWorkerSubscriber.php | 10 +- .../RememberMe/DoctrineTokenProvider.php | 15 +- .../Constraints/UniqueEntityValidator.php | 4 +- .../Validator/DoctrineInitializer.php | 5 +- .../Monolog/Command/ServerLogCommand.php | 5 +- .../Bridge/Monolog/Handler/ConsoleHandler.php | 12 +- .../Bridge/Monolog/Handler/MailerHandler.php | 4 +- src/Symfony/Bridge/Monolog/Logger.php | 10 +- .../Processor/ConsoleCommandProcessor.php | 10 +- .../Monolog/Processor/DebugProcessor.php | 10 +- src/Symfony/Bridge/Twig/AppVariable.php | 20 +- .../Bridge/Twig/Command/DebugCommand.php | 5 +- .../Bridge/Twig/Command/LintCommand.php | 5 +- .../TemplateAttributeListener.php | 5 +- .../Bridge/Twig/Form/TwigRendererEngine.php | 4 +- .../Bridge/Twig/Translation/TwigExtractor.php | 15 +- .../Bundle/DebugBundle/DebugBundle.php | 15 +- .../Compiler/DumpDataCollectorPass.php | 5 +- .../DependencyInjection/DebugExtension.php | 7 +- .../Command/AbstractConfigCommand.php | 10 +- .../FrameworkBundle/Console/Application.php | 10 +- .../Compiler/AddDebugLogProcessorPass.php | 10 +- .../AddExpressionLanguageProvidersPass.php | 5 +- .../Compiler/AssetsContextPass.php | 5 +- .../ContainerBuilderDebugDumpPass.php | 5 +- .../Compiler/DataCollectorTranslatorPass.php | 5 +- .../Compiler/LoggingTranslatorPass.php | 5 +- .../Compiler/ProfilerPass.php | 5 +- ...oveUnusedSessionMarshallingHandlerPass.php | 5 +- .../TestServiceContainerRealRefPass.php | 5 +- .../TestServiceContainerWeakRefPass.php | 5 +- .../Compiler/UnusedTagsPass.php | 5 +- .../Compiler/WorkflowGuardListenerPass.php | 5 +- .../FrameworkExtension.php | 4 +- .../FrameworkBundle/FrameworkBundle.php | 10 +- .../Kernel/MicroKernelTrait.php | 5 +- .../Bundle/FrameworkBundle/KernelBrowser.php | 18 +- .../AnnotatedRouteControllerLoader.php | 4 +- .../FrameworkBundle/Secrets/AbstractVault.php | 5 +- .../FrameworkBundle/Test/KernelTestCase.php | 4 +- .../Translation/Translator.php | 15 +- .../Debug/TraceableFirewallListener.php | 5 +- .../AddExpressionLanguageProvidersPass.php | 5 +- .../Compiler/AddSecurityVotersPass.php | 5 +- .../AddSessionDomainConstraintPass.php | 5 +- .../Compiler/CleanRememberMeVerifierPass.php | 5 +- ...eFirewallsEventDispatcherTraceablePass.php | 5 +- .../Compiler/RegisterEntryPointPass.php | 5 +- .../Security/Factory/AbstractFactory.php | 25 +- .../Factory/AuthenticatorFactoryInterface.php | 5 +- .../Security/UserProvider/InMemoryFactory.php | 15 +- .../Security/UserProvider/LdapFactory.php | 15 +- .../UserProviderFactoryInterface.php | 15 +- .../DependencyInjection/SecurityExtension.php | 10 +- .../EventListener/FirewallListener.php | 10 +- .../Security/FirewallContext.php | 15 +- .../Bundle/SecurityBundle/SecurityBundle.php | 5 +- .../Compiler/ExtensionPass.php | 5 +- .../Compiler/RuntimeLoaderPass.php | 5 +- .../Compiler/TwigEnvironmentPass.php | 5 +- .../Compiler/TwigLoaderPass.php | 5 +- .../Configurator/EnvironmentConfigurator.php | 5 +- .../DependencyInjection/TwigExtension.php | 5 +- src/Symfony/Bundle/TwigBundle/TwigBundle.php | 10 +- .../WebProfilerExtension.php | 4 +- .../WebProfilerBundle/WebProfilerBundle.php | 5 +- 77 files changed, 148 insertions(+), 1720 deletions(-) diff --git a/.github/expected-missing-return-types.diff b/.github/expected-missing-return-types.diff index 559fb065f843c..1845ef389b09e 100644 --- a/.github/expected-missing-return-types.diff +++ b/.github/expected-missing-return-types.diff @@ -7,1217 +7,17 @@ git checkout src/Symfony/Contracts/Service/ResetInterface.php (echo "$head" && echo && git diff -U2 src/) > .github/expected-missing-return-types.diff git checkout composer.json src/ -diff --git a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php -index b275304d7d..48ba999884 100644 ---- a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php -+++ b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php -@@ -43,5 +43,5 @@ class DoctrineDataCollector extends DataCollector - * @return void - */ -- public function collect(Request $request, Response $response, \Throwable $exception = null) -+ public function collect(Request $request, Response $response, \Throwable $exception = null): void - { - $this->data = [ -@@ -66,5 +66,5 @@ class DoctrineDataCollector extends DataCollector - * @return void - */ -- public function reset() -+ public function reset(): void - { - $this->data = []; -@@ -75,5 +75,5 @@ class DoctrineDataCollector extends DataCollector - * @return array - */ -- public function getManagers() -+ public function getManagers(): array - { - return $this->data['managers']; -@@ -83,5 +83,5 @@ class DoctrineDataCollector extends DataCollector - * @return array - */ -- public function getConnections() -+ public function getConnections(): array - { - return $this->data['connections']; -@@ -91,5 +91,5 @@ class DoctrineDataCollector extends DataCollector - * @return int - */ -- public function getQueryCount() -+ public function getQueryCount(): int - { - return array_sum(array_map('count', $this->data['queries'])); -@@ -99,5 +99,5 @@ class DoctrineDataCollector extends DataCollector - * @return array - */ -- public function getQueries() -+ public function getQueries(): array - { - return $this->data['queries']; -@@ -107,5 +107,5 @@ class DoctrineDataCollector extends DataCollector - * @return int - */ -- public function getTime() -+ public function getTime(): int - { - $time = 0; -diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php -index 1ce0ffd40c..585265fb38 100644 ---- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php -+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php -@@ -43,5 +43,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @throws \InvalidArgumentException - */ -- protected function loadMappingInformation(array $objectManager, ContainerBuilder $container) -+ protected function loadMappingInformation(array $objectManager, ContainerBuilder $container): void - { - if ($objectManager['auto_mapping']) { -@@ -111,5 +111,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @return void - */ -- protected function setMappingDriverAlias(array $mappingConfig, string $mappingName) -+ protected function setMappingDriverAlias(array $mappingConfig, string $mappingName): void - { - if (isset($mappingConfig['alias'])) { -@@ -127,5 +127,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @throws \InvalidArgumentException - */ -- protected function setMappingDriverConfig(array $mappingConfig, string $mappingName) -+ protected function setMappingDriverConfig(array $mappingConfig, string $mappingName): void - { - $mappingDirectory = $mappingConfig['dir']; -@@ -182,5 +182,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @return void - */ -- protected function registerMappingDrivers(array $objectManager, ContainerBuilder $container) -+ protected function registerMappingDrivers(array $objectManager, ContainerBuilder $container): void - { - // configure metadata driver for each bundle based on the type of mapping files found -@@ -240,5 +240,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @throws \InvalidArgumentException - */ -- protected function assertValidMappingConfiguration(array $mappingConfig, string $objectManagerName) -+ protected function assertValidMappingConfiguration(array $mappingConfig, string $objectManagerName): void - { - if (!$mappingConfig['type'] || !$mappingConfig['dir'] || !$mappingConfig['prefix']) { -@@ -330,5 +330,5 @@ abstract class AbstractDoctrineExtension extends Extension - * @throws \InvalidArgumentException in case of unknown driver type - */ -- protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, string $cacheName) -+ protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, string $cacheName): void - { - $this->loadCacheDriver($cacheName, $objectManager['name'], $objectManager[$cacheName.'_driver'], $container); -diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php -index 83bfffaf27..acbd7e4bc7 100644 ---- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php -+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php -@@ -32,5 +32,5 @@ class DoctrineValidationPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - $this->updateValidatorMappingFiles($container, 'xml', 'xml'); -diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php -index 43efdd1af7..ee2f6bc2f9 100644 ---- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php -+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php -@@ -57,5 +57,5 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasParameter($this->connectionsParameter)) { -diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php -index 1a3f227c6d..daf6634922 100644 ---- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php -+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php -@@ -134,5 +134,5 @@ abstract class RegisterMappingsPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$this->enabled($container)) { -diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php -index 80ee258438..e2c51954d0 100644 ---- a/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php -+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php -@@ -37,5 +37,5 @@ class EntityFactory implements UserProviderFactoryInterface - * @return void - */ -- public function create(ContainerBuilder $container, string $id, array $config) -+ public function create(ContainerBuilder $container, string $id, array $config): void - { - $container -@@ -50,5 +50,5 @@ class EntityFactory implements UserProviderFactoryInterface - * @return string - */ -- public function getKey() -+ public function getKey(): string - { - return $this->key; -@@ -58,5 +58,5 @@ class EntityFactory implements UserProviderFactoryInterface - * @return void - */ -- public function addConfiguration(NodeDefinition $node) -+ public function addConfiguration(NodeDefinition $node): void - { - $node -diff --git a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php -index b9b309025d..d25ae768f2 100644 ---- a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php -+++ b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php -@@ -160,5 +160,5 @@ class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface - * @return array{0:ClassMetadata, 1:string}|null - */ -- protected function getMetadata(string $class) -+ protected function getMetadata(string $class): ?array - { - // normalize class name -diff --git a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php -index cff8b3b156..51e1f32e97 100644 ---- a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php -+++ b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php -@@ -42,5 +42,5 @@ class MergeDoctrineCollectionListener implements EventSubscriberInterface - * @return void - */ -- public function onSubmit(FormEvent $event) -+ public function onSubmit(FormEvent $event): void - { - $collection = $event->getForm()->getData(); -diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php -index d1d72ef75a..68a437e8d7 100644 ---- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php -+++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php -@@ -101,5 +101,5 @@ abstract class DoctrineType extends AbstractType implements ResetInterface - * @return void - */ -- public function buildForm(FormBuilderInterface $builder, array $options) -+ public function buildForm(FormBuilderInterface $builder, array $options): void - { - if ($options['multiple'] && interface_exists(Collection::class)) { -@@ -114,5 +114,5 @@ abstract class DoctrineType extends AbstractType implements ResetInterface - * @return void - */ -- public function configureOptions(OptionsResolver $resolver) -+ public function configureOptions(OptionsResolver $resolver): void - { - $choiceLoader = function (Options $options) { -@@ -242,5 +242,5 @@ abstract class DoctrineType extends AbstractType implements ResetInterface - * @return void - */ -- public function reset() -+ public function reset(): void - { - $this->idReaders = []; -diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php -index c096b558db..8d584900a9 100644 ---- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php -+++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php -@@ -25,5 +25,5 @@ class EntityType extends DoctrineType - * @return void - */ -- public function configureOptions(OptionsResolver $resolver) -+ public function configureOptions(OptionsResolver $resolver): void - { - parent::configureOptions($resolver); -diff --git a/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php b/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php -index 38618fc15e..eb599eb0b4 100644 ---- a/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php -+++ b/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php -@@ -34,5 +34,5 @@ class DoctrineClearEntityManagerWorkerSubscriber implements EventSubscriberInter - * @return void - */ -- public function onWorkerMessageHandled() -+ public function onWorkerMessageHandled(): void - { - $this->clearEntityManagers(); -@@ -42,5 +42,5 @@ class DoctrineClearEntityManagerWorkerSubscriber implements EventSubscriberInter - * @return void - */ -- public function onWorkerMessageFailed() -+ public function onWorkerMessageFailed(): void - { - $this->clearEntityManagers(); -diff --git a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php -index 4a19f49cdb..a1cd2c5beb 100644 ---- a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php -+++ b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php -@@ -62,5 +62,5 @@ class DoctrineTokenProvider implements TokenProviderInterface, TokenVerifierInte - * @return void - */ -- public function deleteTokenBySeries(string $series) -+ public function deleteTokenBySeries(string $series): void - { - $sql = 'DELETE FROM rememberme_token WHERE series=:series'; -@@ -73,5 +73,5 @@ class DoctrineTokenProvider implements TokenProviderInterface, TokenVerifierInte - * @return void - */ -- public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed) -+ public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed): void - { - $sql = 'UPDATE rememberme_token SET value=:value, lastUsed=:lastUsed WHERE series=:series'; -@@ -96,5 +96,5 @@ class DoctrineTokenProvider implements TokenProviderInterface, TokenVerifierInte - * @return void - */ -- public function createNewToken(PersistentTokenInterface $token) -+ public function createNewToken(PersistentTokenInterface $token): void - { - $sql = 'INSERT INTO rememberme_token (class, username, series, value, lastUsed) VALUES (:class, :username, :series, :value, :lastUsed)'; -diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php -index a69bcad8ef..fba98b3cfb 100644 ---- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php -+++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php -@@ -43,5 +43,5 @@ class UniqueEntityValidator extends ConstraintValidator - * @throws ConstraintDefinitionException - */ -- public function validate(mixed $entity, Constraint $constraint) -+ public function validate(mixed $entity, Constraint $constraint): void - { - if (!$constraint instanceof UniqueEntity) { -diff --git a/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php b/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php -index bf8a5feb9f..e346c8b17c 100644 ---- a/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php -+++ b/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php -@@ -32,5 +32,5 @@ class DoctrineInitializer implements ObjectInitializerInterface - * @return void - */ -- public function initialize(object $object) -+ public function initialize(object $object): void - { - $this->registry->getManagerForClass($object::class)?->initializeObject($object); -diff --git a/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php b/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php -index 5210e8eefa..0e842abb76 100644 ---- a/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php -+++ b/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php -@@ -54,5 +54,5 @@ class ServerLogCommand extends Command - * @return void - */ -- protected function configure() -+ protected function configure(): void - { - if (!class_exists(ConsoleFormatter::class)) { -diff --git a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php -index 57a4c1c2b7..2fb70d7774 100644 ---- a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php -+++ b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php -@@ -133,5 +133,5 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe - * @return void - */ -- public function setOutput(OutputInterface $output) -+ public function setOutput(OutputInterface $output): void - { - $this->output = $output; -@@ -154,5 +154,5 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe - * @return void - */ -- public function onCommand(ConsoleCommandEvent $event) -+ public function onCommand(ConsoleCommandEvent $event): void - { - $output = $event->getOutput(); -@@ -169,5 +169,5 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe - * @return void - */ -- public function onTerminate(ConsoleTerminateEvent $event) -+ public function onTerminate(ConsoleTerminateEvent $event): void - { - $this->close(); -diff --git a/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php b/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php -index 718be59c13..091f24a8f8 100644 ---- a/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php -+++ b/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php -@@ -81,5 +81,5 @@ class MailerHandler extends AbstractProcessingHandler - * @return void - */ -- protected function send(string $content, array $records) -+ protected function send(string $content, array $records): void - { - $this->mailer->send($this->buildMessage($content, $records)); -diff --git a/src/Symfony/Bridge/Monolog/Logger.php b/src/Symfony/Bridge/Monolog/Logger.php -index 367b3351ff..fb603e74ba 100644 ---- a/src/Symfony/Bridge/Monolog/Logger.php -+++ b/src/Symfony/Bridge/Monolog/Logger.php -@@ -44,5 +44,5 @@ class Logger extends BaseLogger implements DebugLoggerInterface, ResetInterface - * @return void - */ -- public function clear() -+ public function clear(): void - { - if ($logger = $this->getDebugLogger()) { -@@ -63,5 +63,5 @@ class Logger extends BaseLogger implements DebugLoggerInterface, ResetInterface - * @return void - */ -- public function removeDebugLogger() -+ public function removeDebugLogger(): void - { - foreach ($this->processors as $k => $processor) { -diff --git a/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php b/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php -index df2a718720..2ccab3649f 100644 ---- a/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php -+++ b/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php -@@ -51,5 +51,5 @@ class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterfac - * @return void - */ -- public function reset() -+ public function reset(): void - { - unset($this->commandData); -@@ -59,5 +59,5 @@ class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterfac - * @return void - */ -- public function addCommandData(ConsoleEvent $event) -+ public function addCommandData(ConsoleEvent $event): void - { - $this->commandData = [ -diff --git a/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php b/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php -index c1ce2898da..7a9bf04e18 100644 ---- a/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php -+++ b/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php -@@ -94,5 +94,5 @@ class DebugProcessor implements DebugLoggerInterface, ResetInterface - * @return void - */ -- public function clear() -+ public function clear(): void - { - $this->records = []; -@@ -103,5 +103,5 @@ class DebugProcessor implements DebugLoggerInterface, ResetInterface - * @return void - */ -- public function reset() -+ public function reset(): void - { - $this->clear(); -diff --git a/src/Symfony/Bridge/Twig/AppVariable.php b/src/Symfony/Bridge/Twig/AppVariable.php -index 8bfaa0a22c..745ba6aff3 100644 ---- a/src/Symfony/Bridge/Twig/AppVariable.php -+++ b/src/Symfony/Bridge/Twig/AppVariable.php -@@ -36,5 +36,5 @@ class AppVariable - * @return void - */ -- public function setTokenStorage(TokenStorageInterface $tokenStorage) -+ public function setTokenStorage(TokenStorageInterface $tokenStorage): void - { - $this->tokenStorage = $tokenStorage; -@@ -44,5 +44,5 @@ class AppVariable - * @return void - */ -- public function setRequestStack(RequestStack $requestStack) -+ public function setRequestStack(RequestStack $requestStack): void - { - $this->requestStack = $requestStack; -@@ -52,5 +52,5 @@ class AppVariable - * @return void - */ -- public function setEnvironment(string $environment) -+ public function setEnvironment(string $environment): void - { - $this->environment = $environment; -@@ -60,5 +60,5 @@ class AppVariable - * @return void - */ -- public function setDebug(bool $debug) -+ public function setDebug(bool $debug): void - { - $this->debug = $debug; -diff --git a/src/Symfony/Bridge/Twig/Command/DebugCommand.php b/src/Symfony/Bridge/Twig/Command/DebugCommand.php -index 43e4d9c9f1..ea0116870b 100644 ---- a/src/Symfony/Bridge/Twig/Command/DebugCommand.php -+++ b/src/Symfony/Bridge/Twig/Command/DebugCommand.php -@@ -63,5 +63,5 @@ class DebugCommand extends Command - * @return void - */ -- protected function configure() -+ protected function configure(): void - { - $this -diff --git a/src/Symfony/Bridge/Twig/Command/LintCommand.php b/src/Symfony/Bridge/Twig/Command/LintCommand.php -index e059740a13..e7d6fbdd05 100644 ---- a/src/Symfony/Bridge/Twig/Command/LintCommand.php -+++ b/src/Symfony/Bridge/Twig/Command/LintCommand.php -@@ -52,5 +52,5 @@ class LintCommand extends Command - * @return void - */ -- protected function configure() -+ protected function configure(): void - { - $this -diff --git a/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php b/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php -index ef0f9ba954..16240deb4a 100644 ---- a/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php -+++ b/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php -@@ -32,5 +32,5 @@ class TemplateAttributeListener implements EventSubscriberInterface - * @return void - */ -- public function onKernelView(ViewEvent $event) -+ public function onKernelView(ViewEvent $event): void - { - $parameters = $event->getControllerResult(); -diff --git a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php -index fbe8e0b3e4..6e7fefc70d 100644 ---- a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php -+++ b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php -@@ -136,5 +136,5 @@ class TwigRendererEngine extends AbstractRendererEngine - * @return void - */ -- protected function loadResourcesFromTheme(string $cacheKey, mixed &$theme) -+ protected function loadResourcesFromTheme(string $cacheKey, mixed &$theme): void - { - if (!$theme instanceof Template) { -diff --git a/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php b/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php -index 2b44c5ef8d..05b4428490 100644 ---- a/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php -+++ b/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php -@@ -49,5 +49,5 @@ class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface - * @return void - */ -- public function extract($resource, MessageCatalogue $catalogue) -+ public function extract($resource, MessageCatalogue $catalogue): void - { - foreach ($this->extractFiles($resource) as $file) { -@@ -63,5 +63,5 @@ class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface - * @return void - */ -- public function setPrefix(string $prefix) -+ public function setPrefix(string $prefix): void - { - $this->prefix = $prefix; -@@ -71,5 +71,5 @@ class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface - * @return void - */ -- protected function extractTemplate(string $template, MessageCatalogue $catalogue) -+ protected function extractTemplate(string $template, MessageCatalogue $catalogue): void - { - $visitor = $this->twig->getExtension(TranslationExtension::class)->getTranslationNodeVisitor(); -diff --git a/src/Symfony/Bundle/DebugBundle/DebugBundle.php b/src/Symfony/Bundle/DebugBundle/DebugBundle.php -index 9782bf8e39..83090e6ed5 100644 ---- a/src/Symfony/Bundle/DebugBundle/DebugBundle.php -+++ b/src/Symfony/Bundle/DebugBundle/DebugBundle.php -@@ -26,5 +26,5 @@ class DebugBundle extends Bundle - * @return void - */ -- public function boot() -+ public function boot(): void - { - if ($this->container->getParameter('kernel.debug')) { -@@ -56,5 +56,5 @@ class DebugBundle extends Bundle - * @return void - */ -- public function build(ContainerBuilder $container) -+ public function build(ContainerBuilder $container): void - { - parent::build($container); -@@ -66,5 +66,5 @@ class DebugBundle extends Bundle - * @return void - */ -- public function registerCommands(Application $application) -+ public function registerCommands(Application $application): void - { - // noop -diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php -index cecce87c4a..7c6d738481 100644 ---- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php -+++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php -@@ -26,5 +26,5 @@ class DumpDataCollectorPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('data_collector.dump')) { -diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php -index eadeafba55..4f1ca3bfef 100644 ---- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php -+++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php -@@ -33,5 +33,5 @@ class DebugExtension extends Extension - * @return void - */ -- public function load(array $configs, ContainerBuilder $container) -+ public function load(array $configs, ContainerBuilder $container): void - { - $configuration = new Configuration(); -diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php -index 94b95e5029..c8a563163e 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php -@@ -32,5 +32,5 @@ abstract class AbstractConfigCommand extends ContainerDebugCommand - * @return void - */ -- protected function listBundles(OutputInterface|StyleInterface $output) -+ protected function listBundles(OutputInterface|StyleInterface $output): void - { - $title = 'Available registered bundles with their extension alias if available'; -@@ -163,5 +163,5 @@ abstract class AbstractConfigCommand extends ContainerDebugCommand - * @return void - */ -- public function validateConfiguration(ExtensionInterface $extension, mixed $configuration) -+ public function validateConfiguration(ExtensionInterface $extension, mixed $configuration): void - { - if (!$configuration) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php -index 0451b31fe1..14806da8ee 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php -@@ -55,5 +55,5 @@ class Application extends BaseApplication - * @return void - */ -- public function reset() -+ public function reset(): void - { - if ($this->kernel->getContainer()->has('services_resetter')) { -@@ -137,5 +137,5 @@ class Application extends BaseApplication - * @return void - */ -- protected function registerCommands() -+ protected function registerCommands(): void - { - if ($this->commandsRegistered) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php -index d0aca7a06b..aee4af1a43 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php -@@ -21,5 +21,5 @@ class AddDebugLogProcessorPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('profiler')) { -@@ -41,5 +41,5 @@ class AddDebugLogProcessorPass implements CompilerPassInterface - * @return void - */ -- public static function configureLogger(mixed $logger) -+ public static function configureLogger(mixed $logger): void - { - if (\is_object($logger) && method_exists($logger, 'removeDebugLogger') && \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -index 5442b27734..9ed6cf284c 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -@@ -26,5 +26,5 @@ class AddExpressionLanguageProvidersPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - // routing -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php -index e8c2ad3a0e..d8b3b64f5d 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php -@@ -22,5 +22,5 @@ class AssetsContextPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('assets.context')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php -index 1e08ef3149..530bbdc4cd 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php -@@ -29,5 +29,5 @@ class ContainerBuilderDebugDumpPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->getParameter('debug.container.dump')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php -index e66e98b451..7714d62f3e 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php -@@ -24,5 +24,5 @@ class DataCollectorTranslatorPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->has('translator')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php -index b7cb920bf7..76b5dace0f 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php -@@ -26,5 +26,5 @@ class LoggingTranslatorPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasAlias('logger') || !$container->hasAlias('translator')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php -index c2d669fe1c..322f3eaeee 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php -@@ -28,5 +28,5 @@ class ProfilerPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (false === $container->hasDefinition('profiler')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php -index fedc30d06e..bb934fe1f6 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php -@@ -23,5 +23,5 @@ class RemoveUnusedSessionMarshallingHandlerPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('session.marshalling_handler')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php -index aed3b13404..91a6804fea 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php -@@ -25,5 +25,5 @@ class TestServiceContainerRealRefPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('test.private_services_locator')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php -index 6e7669a710..27517d34ae 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php -@@ -25,5 +25,5 @@ class TestServiceContainerWeakRefPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('test.private_services_locator')) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php -index b04516410f..fc5a085a37 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php -@@ -109,5 +109,5 @@ class UnusedTagsPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - $tags = array_unique(array_merge($container->findTags(), self::KNOWN_TAGS)); -diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php -index bda9ca9515..c0d1f91339 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php -+++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php -@@ -25,5 +25,5 @@ class WorkflowGuardListenerPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasParameter('workflow.has_guard_listeners')) { diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php -index cb855a9c2c..a935ea8307 100644 +index 4b79ab7363..b72ff1d63b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php -@@ -212,5 +212,5 @@ class FrameworkExtension extends Extension - * @throws LogicException - */ -- public function load(array $configs, ContainerBuilder $container) -+ public function load(array $configs, ContainerBuilder $container): void - { - $loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config')); -@@ -2904,5 +2904,5 @@ class FrameworkExtension extends Extension +@@ -2902,5 +2902,5 @@ class FrameworkExtension extends Extension * @return void */ - public static function registerRateLimiter(ContainerBuilder $container, string $name, array $limiterConfig) + public static function registerRateLimiter(ContainerBuilder $container, string $name, array $limiterConfig): void { trigger_deprecation('symfony/framework-bundle', '6.2', 'The "%s()" method is deprecated.', __METHOD__); -diff --git a/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php b/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php -index 339b28e83c..448402d81e 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php -+++ b/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php -@@ -94,5 +94,5 @@ class FrameworkBundle extends Bundle - * @return void - */ -- public function boot() -+ public function boot(): void - { - $_ENV['DOCTRINE_DEPRECATIONS'] = $_SERVER['DOCTRINE_DEPRECATIONS'] ??= 'trigger'; -@@ -119,5 +119,5 @@ class FrameworkBundle extends Bundle - * @return void - */ -- public function build(ContainerBuilder $container) -+ public function build(ContainerBuilder $container): void - { - parent::build($container); -diff --git a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php -index f82e1fb209..36b4ddb6c9 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php -@@ -133,5 +133,5 @@ trait MicroKernelTrait - * @return void - */ -- public function registerContainerConfiguration(LoaderInterface $loader) -+ public function registerContainerConfiguration(LoaderInterface $loader): void - { - $loader->load(function (ContainerBuilder $container) use ($loader) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php b/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php -index 0379be8f5b..568f30f72d 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php -+++ b/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php -@@ -77,5 +77,5 @@ class KernelBrowser extends HttpKernelBrowser - * @return void - */ -- public function enableProfiler() -+ public function enableProfiler(): void - { - if ($this->getContainer()->has('profiler')) { -@@ -92,5 +92,5 @@ class KernelBrowser extends HttpKernelBrowser - * @return void - */ -- public function disableReboot() -+ public function disableReboot(): void - { - $this->reboot = false; -@@ -102,5 +102,5 @@ class KernelBrowser extends HttpKernelBrowser - * @return void - */ -- public function enableReboot() -+ public function enableReboot(): void - { - $this->reboot = true; -diff --git a/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php b/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php -index ec03f84979..498dc24d1c 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php -@@ -28,5 +28,5 @@ class AnnotatedRouteControllerLoader extends AnnotationClassLoader - * @return void - */ -- protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot) -+ protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot): void - { - if ('__invoke' === $method->getName()) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php b/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php -index b3eb0c6bc3..c47152f219 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php -@@ -44,5 +44,5 @@ abstract class AbstractVault - * @return string - */ -- protected function getPrettyPath(string $path) -+ protected function getPrettyPath(string $path): string - { - return str_replace(getcwd().\DIRECTORY_SEPARATOR, '', $path); -diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php -index bb5560a7b5..be86cbf98e 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php -@@ -88,5 +88,5 @@ abstract class KernelTestCase extends TestCase - * @return Container - */ -- protected static function getContainer(): ContainerInterface -+ protected static function getContainer(): Container - { - if (!static::$booted) { -diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php -index dac3b6394f..d319cb0824 100644 ---- a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php -+++ b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php -@@ -122,5 +122,5 @@ class Translator extends BaseTranslator implements WarmableInterface - * @return void - */ -- public function addResource(string $format, mixed $resource, string $locale, string $domain = null) -+ public function addResource(string $format, mixed $resource, string $locale, string $domain = null): void - { - if ($this->resourceFiles) { -@@ -133,5 +133,5 @@ class Translator extends BaseTranslator implements WarmableInterface - * @return void - */ -- protected function initializeCatalogue(string $locale) -+ protected function initializeCatalogue(string $locale): void - { - $this->initialize(); -@@ -155,5 +155,5 @@ class Translator extends BaseTranslator implements WarmableInterface - * @return void - */ -- protected function initialize() -+ protected function initialize(): void - { - if ($this->resourceFiles) { -diff --git a/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php b/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php -index bb5fe03096..e756cd7957 100644 ---- a/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php -+++ b/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php -@@ -32,5 +32,5 @@ final class TraceableFirewallListener extends FirewallListener - * @return array - */ -- public function getWrappedListeners() -+ public function getWrappedListeners(): array - { - return $this->wrappedListeners; -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -index 08d7fd9213..8bacecce11 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php -@@ -26,5 +26,5 @@ class AddExpressionLanguageProvidersPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if ($container->has('security.expression_language')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php -index 8a2bad79a1..324fd00970 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php -@@ -33,5 +33,5 @@ class AddSecurityVotersPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('security.access.decision_manager')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php -index 9a7a94ca08..bc4baa0f65 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php -@@ -25,5 +25,5 @@ class AddSessionDomainConstraintPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasParameter('session.storage.options') || !$container->has('security.http_utils')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php -index 2041a36b38..d54311d5de 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php -@@ -25,5 +25,5 @@ class CleanRememberMeVerifierPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('cache.system')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php -index e7c77d1ec3..419e18f6f0 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php -@@ -26,5 +26,5 @@ class MakeFirewallsEventDispatcherTraceablePass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->has('event_dispatcher') || !$container->hasParameter('security.firewalls')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php -index 3ca2a70acb..2ba4a41499 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php -@@ -27,5 +27,5 @@ class RegisterEntryPointPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasParameter('security.firewalls')) { -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php -index 24eb1377c5..6367585643 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php -@@ -56,5 +56,5 @@ abstract class AbstractFactory implements AuthenticatorFactoryInterface - * @return void - */ -- public function addConfiguration(NodeDefinition $node) -+ public function addConfiguration(NodeDefinition $node): void - { - $builder = $node->children(); -@@ -79,5 +79,5 @@ abstract class AbstractFactory implements AuthenticatorFactoryInterface - * @return string - */ -- protected function createAuthenticationSuccessHandler(ContainerBuilder $container, string $id, array $config) -+ protected function createAuthenticationSuccessHandler(ContainerBuilder $container, string $id, array $config): string - { - $successHandlerId = $this->getSuccessHandlerId($id); -@@ -101,5 +101,5 @@ abstract class AbstractFactory implements AuthenticatorFactoryInterface - * @return string - */ -- protected function createAuthenticationFailureHandler(ContainerBuilder $container, string $id, array $config) -+ protected function createAuthenticationFailureHandler(ContainerBuilder $container, string $id, array $config): string - { - $id = $this->getFailureHandlerId($id); -@@ -121,5 +121,5 @@ abstract class AbstractFactory implements AuthenticatorFactoryInterface - * @return string - */ -- protected function getSuccessHandlerId(string $id) -+ protected function getSuccessHandlerId(string $id): string - { - return 'security.authentication.success_handler.'.$id.'.'.str_replace('-', '_', $this->getKey()); -@@ -129,5 +129,5 @@ abstract class AbstractFactory implements AuthenticatorFactoryInterface - * @return string - */ -- protected function getFailureHandlerId(string $id) -+ protected function getFailureHandlerId(string $id): string - { - return 'security.authentication.failure_handler.'.$id.'.'.str_replace('-', '_', $this->getKey()); -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php -index 8082b6f352..bd9e1cff26 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php -@@ -34,5 +34,5 @@ interface AuthenticatorFactoryInterface - * @return void - */ -- public function addConfiguration(NodeDefinition $builder); -+ public function addConfiguration(NodeDefinition $builder): void; - - /** -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php -index 936f58a084..1a3c89381b 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php -@@ -28,5 +28,5 @@ class InMemoryFactory implements UserProviderFactoryInterface - * @return void - */ -- public function create(ContainerBuilder $container, string $id, array $config) -+ public function create(ContainerBuilder $container, string $id, array $config): void - { - $definition = $container->setDefinition($id, new ChildDefinition('security.user.provider.in_memory')); -@@ -44,5 +44,5 @@ class InMemoryFactory implements UserProviderFactoryInterface - * @return string - */ -- public function getKey() -+ public function getKey(): string - { - return 'memory'; -@@ -52,5 +52,5 @@ class InMemoryFactory implements UserProviderFactoryInterface - * @return void - */ -- public function addConfiguration(NodeDefinition $node) -+ public function addConfiguration(NodeDefinition $node): void - { - $node -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php -index 2f4dca01d1..ca99ad286f 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php -@@ -28,5 +28,5 @@ class LdapFactory implements UserProviderFactoryInterface - * @return void - */ -- public function create(ContainerBuilder $container, string $id, array $config) -+ public function create(ContainerBuilder $container, string $id, array $config): void - { - $container -@@ -47,5 +47,5 @@ class LdapFactory implements UserProviderFactoryInterface - * @return string - */ -- public function getKey() -+ public function getKey(): string - { - return 'ldap'; -@@ -55,5 +55,5 @@ class LdapFactory implements UserProviderFactoryInterface - * @return void - */ -- public function addConfiguration(NodeDefinition $node) -+ public function addConfiguration(NodeDefinition $node): void - { - $node -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php -index a2c5815e4b..1c9721ccc6 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php -@@ -26,14 +26,14 @@ interface UserProviderFactoryInterface - * @return void - */ -- public function create(ContainerBuilder $container, string $id, array $config); -+ public function create(ContainerBuilder $container, string $id, array $config): void; - - /** - * @return string - */ -- public function getKey(); -+ public function getKey(): string; - - /** - * @return void - */ -- public function addConfiguration(NodeDefinition $builder); -+ public function addConfiguration(NodeDefinition $builder): void; - } -diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php -index 08cabe52ce..c21b82105e 100644 ---- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php -+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php -@@ -83,5 +83,5 @@ class SecurityExtension extends Extension implements PrependExtensionInterface - * @return void - */ -- public function prepend(ContainerBuilder $container) -+ public function prepend(ContainerBuilder $container): void - { - foreach ($this->getSortedFactories() as $factory) { -@@ -95,5 +95,5 @@ class SecurityExtension extends Extension implements PrependExtensionInterface - * @return void - */ -- public function load(array $configs, ContainerBuilder $container) -+ public function load(array $configs, ContainerBuilder $container): void - { - if (!array_filter($configs)) { -diff --git a/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php b/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php -index 0c703f79cf..7d9e956580 100644 ---- a/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php -+++ b/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php -@@ -40,5 +40,5 @@ class FirewallListener extends Firewall - * @return void - */ -- public function configureLogoutUrlGenerator(RequestEvent $event) -+ public function configureLogoutUrlGenerator(RequestEvent $event): void - { - if (!$event->isMainRequest()) { -@@ -54,5 +54,5 @@ class FirewallListener extends Firewall - * @return void - */ -- public function onKernelFinishRequest(FinishRequestEvent $event) -+ public function onKernelFinishRequest(FinishRequestEvent $event): void - { - if ($event->isMainRequest()) { -diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php -index 5077c6768d..bd741840f4 100644 ---- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php -+++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php -@@ -42,5 +42,5 @@ class FirewallContext - * @return FirewallConfig|null - */ -- public function getConfig() -+ public function getConfig(): ?FirewallConfig - { - return $this->config; -@@ -58,5 +58,5 @@ class FirewallContext - * @return ExceptionListener|null - */ -- public function getExceptionListener() -+ public function getExceptionListener(): ?ExceptionListener - { - return $this->exceptionListener; -@@ -66,5 +66,5 @@ class FirewallContext - * @return LogoutListener|null - */ -- public function getLogoutListener() -+ public function getLogoutListener(): ?LogoutListener - { - return $this->logoutListener; -diff --git a/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php b/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php -index 2cbca705f9..42cfdb0ff0 100644 ---- a/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php -+++ b/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php -@@ -60,5 +60,5 @@ class SecurityBundle extends Bundle - * @return void - */ -- public function build(ContainerBuilder $container) -+ public function build(ContainerBuilder $container): void - { - parent::build($container); -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php -index 63dd68e91b..48889647a1 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php -@@ -29,5 +29,5 @@ class ExtensionPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!class_exists(Packages::class)) { -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php -index ecb99ce20e..212ebbc96f 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php -@@ -25,5 +25,5 @@ class RuntimeLoaderPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (!$container->hasDefinition('twig.runtime_loader')) { -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php -index 99b975edea..2c9e2d326d 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php -@@ -28,5 +28,5 @@ class TwigEnvironmentPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (false === $container->hasDefinition('twig')) { -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php -index 1da7e86797..eb6df32373 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php -@@ -27,5 +27,5 @@ class TwigLoaderPass implements CompilerPassInterface - * @return void - */ -- public function process(ContainerBuilder $container) -+ public function process(ContainerBuilder $container): void - { - if (false === $container->hasDefinition('twig')) { -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php -index b3eec9ff60..742be71a64 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php -@@ -46,5 +46,5 @@ class EnvironmentConfigurator - * @return void - */ -- public function configure(Environment $environment) -+ public function configure(Environment $environment): void - { - $environment->getExtension(CoreExtension::class)->setDateFormat($this->dateFormat, $this->intervalFormat); -diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php -index f257f60298..b76392370a 100644 ---- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php -+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php -@@ -40,5 +40,5 @@ class TwigExtension extends Extension - * @return void - */ -- public function load(array $configs, ContainerBuilder $container) -+ public function load(array $configs, ContainerBuilder $container): void - { - $loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); -diff --git a/src/Symfony/Bundle/TwigBundle/TwigBundle.php b/src/Symfony/Bundle/TwigBundle/TwigBundle.php -index 802cb536d1..d7e1017875 100644 ---- a/src/Symfony/Bundle/TwigBundle/TwigBundle.php -+++ b/src/Symfony/Bundle/TwigBundle/TwigBundle.php -@@ -31,5 +31,5 @@ class TwigBundle extends Bundle - * @return void - */ -- public function build(ContainerBuilder $container) -+ public function build(ContainerBuilder $container): void - { - parent::build($container); -@@ -45,5 +45,5 @@ class TwigBundle extends Bundle - * @return void - */ -- public function registerCommands(Application $application) -+ public function registerCommands(Application $application): void - { - // noop -diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php -index 16e6db29ee..1420b29c99 100644 ---- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php -+++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php -@@ -41,5 +41,5 @@ class WebProfilerExtension extends Extension - * @return void - */ -- public function load(array $configs, ContainerBuilder $container) -+ public function load(array $configs, ContainerBuilder $container): void - { - $configuration = $this->getConfiguration($configs, $container); -diff --git a/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php b/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php -index 264b26c925..2dbc40c735 100644 ---- a/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php -+++ b/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php -@@ -22,5 +22,5 @@ class WebProfilerBundle extends Bundle - * @return void - */ -- public function boot() -+ public function boot(): void - { - if ('prod' === $this->container->getParameter('kernel.environment')) { diff --git a/src/Symfony/Component/Asset/Packages.php b/src/Symfony/Component/Asset/Packages.php index cffea43c49..0645fbd756 100644 --- a/src/Symfony/Component/Asset/Packages.php @@ -7445,7 +6245,7 @@ index 3128a1d833..6721bbe974 100644 { ksort($this->cacheControl); diff --git a/src/Symfony/Component/HttpFoundation/ParameterBag.php b/src/Symfony/Component/HttpFoundation/ParameterBag.php -index 9d7012de35..545339d4ef 100644 +index 998f16a1cd..b61c34cb36 100644 --- a/src/Symfony/Component/HttpFoundation/ParameterBag.php +++ b/src/Symfony/Component/HttpFoundation/ParameterBag.php @@ -64,5 +64,5 @@ class ParameterBag implements \IteratorAggregate, \Countable @@ -7477,7 +6277,7 @@ index 9d7012de35..545339d4ef 100644 { unset($this->parameters[$key]); diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php -index 0bef6f8d70..ca99fd9dad 100644 +index 3df05302bf..3d909d4e35 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -269,5 +269,5 @@ class Request @@ -7487,91 +6287,91 @@ index 0bef6f8d70..ca99fd9dad 100644 + public function initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null): void { $this->request = new InputBag($request); -@@ -429,5 +429,5 @@ class Request +@@ -428,5 +428,5 @@ class Request * @return void */ - public static function setFactory(?callable $callable) + public static function setFactory(?callable $callable): void { self::$requestFactory = $callable; -@@ -535,5 +535,5 @@ class Request +@@ -534,5 +534,5 @@ class Request * @return void */ - public function overrideGlobals() + public function overrideGlobals(): void { $this->server->set('QUERY_STRING', static::normalizeQueryString(http_build_query($this->query->all(), '', '&'))); -@@ -577,5 +577,5 @@ class Request +@@ -576,5 +576,5 @@ class Request * @return void */ - public static function setTrustedProxies(array $proxies, int $trustedHeaderSet) + public static function setTrustedProxies(array $proxies, int $trustedHeaderSet): void { self::$trustedProxies = array_reduce($proxies, function ($proxies, $proxy) { -@@ -620,5 +620,5 @@ class Request +@@ -619,5 +619,5 @@ class Request * @return void */ - public static function setTrustedHosts(array $hostPatterns) + public static function setTrustedHosts(array $hostPatterns): void { self::$trustedHostPatterns = array_map(fn ($hostPattern) => sprintf('{%s}i', $hostPattern), $hostPatterns); -@@ -668,5 +668,5 @@ class Request +@@ -667,5 +667,5 @@ class Request * @return void */ - public static function enableHttpMethodParameterOverride() + public static function enableHttpMethodParameterOverride(): void { self::$httpMethodParameterOverride = true; -@@ -755,5 +755,5 @@ class Request +@@ -754,5 +754,5 @@ class Request * @return void */ - public function setSession(SessionInterface $session) + public function setSession(SessionInterface $session): void { $this->session = $session; -@@ -1178,5 +1178,5 @@ class Request +@@ -1177,5 +1177,5 @@ class Request * @return void */ - public function setMethod(string $method) + public function setMethod(string $method): void { $this->method = null; -@@ -1301,5 +1301,5 @@ class Request +@@ -1300,5 +1300,5 @@ class Request * @return void */ - public function setFormat(?string $format, string|array $mimeTypes) + public function setFormat(?string $format, string|array $mimeTypes): void { if (null === static::$formats) { -@@ -1333,5 +1333,5 @@ class Request +@@ -1332,5 +1332,5 @@ class Request * @return void */ - public function setRequestFormat(?string $format) + public function setRequestFormat(?string $format): void { $this->format = $format; -@@ -1365,5 +1365,5 @@ class Request +@@ -1352,5 +1352,5 @@ class Request * @return void */ - public function setDefaultLocale(string $locale) + public function setDefaultLocale(string $locale): void { $this->defaultLocale = $locale; -@@ -1387,5 +1387,5 @@ class Request +@@ -1374,5 +1374,5 @@ class Request * @return void */ - public function setLocale(string $locale) + public function setLocale(string $locale): void { $this->setPhpDefaultLocale($this->locale = $locale); -@@ -1756,5 +1756,5 @@ class Request +@@ -1743,5 +1743,5 @@ class Request * @return string */ - protected function prepareRequestUri() + protected function prepareRequestUri(): string { $requestUri = ''; -@@ -1927,5 +1927,5 @@ class Request +@@ -1914,5 +1914,5 @@ class Request * @return void */ - protected static function initializeFormats() @@ -11981,10 +10781,10 @@ index 01979d6fcf..e918540c83 100644 /** diff --git a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php -index af530f8d3d..dd672812f1 100644 +index 533c07e6dd..66f30c7f93 100644 --- a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php -@@ -136,5 +136,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer +@@ -134,5 +134,5 @@ final class ObjectNormalizer extends AbstractObjectNormalizer * @return void */ - protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []) diff --git a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php index b275304d7d2f6..92ce82e479641 100644 --- a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php +++ b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php @@ -39,10 +39,7 @@ public function __construct( $this->managers = $registry->getManagerNames(); } - /** - * @return void - */ - public function collect(Request $request, Response $response, \Throwable $exception = null) + public function collect(Request $request, Response $response, \Throwable $exception = null): void { $this->data = [ 'queries' => $this->collectQueries(), @@ -62,51 +59,33 @@ private function collectQueries(): array return $queries; } - /** - * @return void - */ - public function reset() + public function reset(): void { $this->data = []; $this->debugDataHolder->reset(); } - /** - * @return array - */ - public function getManagers() + public function getManagers(): array { return $this->data['managers']; } - /** - * @return array - */ - public function getConnections() + public function getConnections(): array { return $this->data['connections']; } - /** - * @return int - */ - public function getQueryCount() + public function getQueryCount(): int { return array_sum(array_map('count', $this->data['queries'])); } - /** - * @return array - */ - public function getQueries() + public function getQueries(): array { return $this->data['queries']; } - /** - * @return int - */ - public function getTime() + public function getTime(): int { $time = 0; foreach ($this->data['queries'] as $queries) { diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 1ce0ffd40cd9b..ae3b5827a4fe3 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -38,11 +38,9 @@ abstract class AbstractDoctrineExtension extends Extension /** * @param array $objectManager A configured object manager * - * @return void - * * @throws \InvalidArgumentException */ - protected function loadMappingInformation(array $objectManager, ContainerBuilder $container) + protected function loadMappingInformation(array $objectManager, ContainerBuilder $container): void { if ($objectManager['auto_mapping']) { // automatically register bundle mappings @@ -107,10 +105,8 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder * Register the alias for this mapping driver. * * Aliases can be used in the Query languages of all the Doctrine object managers to simplify writing tasks. - * - * @return void */ - protected function setMappingDriverAlias(array $mappingConfig, string $mappingName) + protected function setMappingDriverAlias(array $mappingConfig, string $mappingName): void { if (isset($mappingConfig['alias'])) { $this->aliasMap[$mappingConfig['alias']] = $mappingConfig['prefix']; @@ -122,11 +118,9 @@ protected function setMappingDriverAlias(array $mappingConfig, string $mappingNa /** * Register the mapping driver configuration for later use with the object managers metadata driver chain. * - * @return void - * * @throws \InvalidArgumentException */ - protected function setMappingDriverConfig(array $mappingConfig, string $mappingName) + protected function setMappingDriverConfig(array $mappingConfig, string $mappingName): void { $mappingDirectory = $mappingConfig['dir']; if (!is_dir($mappingDirectory)) { @@ -178,10 +172,8 @@ protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \Re /** * Register all the collected mapping information with the object manager by registering the appropriate mapping drivers. - * - * @return void */ - protected function registerMappingDrivers(array $objectManager, ContainerBuilder $container) + protected function registerMappingDrivers(array $objectManager, ContainerBuilder $container): void { // configure metadata driver for each bundle based on the type of mapping files found if ($container->hasDefinition($this->getObjectManagerElementName($objectManager['name'].'_metadata_driver'))) { @@ -235,11 +227,9 @@ protected function registerMappingDrivers(array $objectManager, ContainerBuilder /** * Assertion if the specified mapping information is valid. * - * @return void - * * @throws \InvalidArgumentException */ - protected function assertValidMappingConfiguration(array $mappingConfig, string $objectManagerName) + protected function assertValidMappingConfiguration(array $mappingConfig, string $objectManagerName): void { if (!$mappingConfig['type'] || !$mappingConfig['dir'] || !$mappingConfig['prefix']) { throw new \InvalidArgumentException(sprintf('Mapping definitions for Doctrine manager "%s" require at least the "type", "dir" and "prefix" options.', $objectManagerName)); @@ -325,11 +315,9 @@ private function detectMappingType(string $directory, ContainerBuilder $containe /** * Loads a configured object manager metadata, query or result cache driver. * - * @return void - * * @throws \InvalidArgumentException in case of unknown driver type */ - protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, string $cacheName) + protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, string $cacheName): void { $this->loadCacheDriver($cacheName, $objectManager['name'], $objectManager[$cacheName.'_driver'], $container); } diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php index 83bfffaf2724e..d3e32b9b606a1 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php @@ -28,10 +28,7 @@ public function __construct(string $managerType) $this->managerType = $managerType; } - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $this->updateValidatorMappingFiles($container, 'xml', 'xml'); $this->updateValidatorMappingFiles($container, 'yaml', 'yml'); diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php index 43efdd1af7401..5b3ba9f915126 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php @@ -53,10 +53,7 @@ public function __construct(string $connectionsParameter, string $managerTemplat $this->tagPrefix = $tagPrefix; } - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasParameter($this->connectionsParameter)) { return; diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php index 1a3f227c6d100..d3e95bb8edd20 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php @@ -130,10 +130,8 @@ public function __construct(Definition|Reference $driver, array $namespaces, arr /** * Register mappings and alias with the metadata drivers. - * - * @return void */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$this->enabled($container)) { return; diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php index 80ee258438d24..025e3392ccf86 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php @@ -33,10 +33,7 @@ public function __construct(string $key, string $providerId) $this->providerId = $providerId; } - /** - * @return void - */ - public function create(ContainerBuilder $container, string $id, array $config) + public function create(ContainerBuilder $container, string $id, array $config): void { $container ->setDefinition($id, new ChildDefinition($this->providerId)) @@ -46,18 +43,12 @@ public function create(ContainerBuilder $container, string $id, array $config) ; } - /** - * @return string - */ - public function getKey() + public function getKey(): string { return $this->key; } - /** - * @return void - */ - public function addConfiguration(NodeDefinition $node) + public function addConfiguration(NodeDefinition $node): void { $node ->children() diff --git a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php index b9b309025d7f5..d25ae768f24c0 100644 --- a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php +++ b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php @@ -159,7 +159,7 @@ public function guessPattern(string $class, string $property): ?ValueGuess * * @return array{0:ClassMetadata, 1:string}|null */ - protected function getMetadata(string $class) + protected function getMetadata(string $class): ?array { // normalize class name $class = self::getRealClass(ltrim($class, '\\')); diff --git a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php index cff8b3b156154..befd0288af6f4 100644 --- a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php +++ b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php @@ -38,10 +38,7 @@ public static function getSubscribedEvents(): array ]; } - /** - * @return void - */ - public function onSubmit(FormEvent $event) + public function onSubmit(FormEvent $event): void { $collection = $event->getForm()->getData(); $data = $event->getData(); diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index d1d72ef75a922..ae5ece50ed301 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -97,10 +97,7 @@ public function __construct(ManagerRegistry $registry) $this->registry = $registry; } - /** - * @return void - */ - public function buildForm(FormBuilderInterface $builder, array $options) + public function buildForm(FormBuilderInterface $builder, array $options): void { if ($options['multiple'] && interface_exists(Collection::class)) { $builder @@ -110,10 +107,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * @return void - */ - public function configureOptions(OptionsResolver $resolver) + public function configureOptions(OptionsResolver $resolver): void { $choiceLoader = function (Options $options) { // Unless the choices are given explicitly, load them on demand @@ -238,10 +232,7 @@ public function getParent(): string return ChoiceType::class; } - /** - * @return void - */ - public function reset() + public function reset(): void { $this->idReaders = []; $this->entityLoaders = []; diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php index c096b558db891..9b8bda7820555 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -21,10 +21,7 @@ class EntityType extends DoctrineType { - /** - * @return void - */ - public function configureOptions(OptionsResolver $resolver) + public function configureOptions(OptionsResolver $resolver): void { parent::configureOptions($resolver); diff --git a/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php b/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php index 38618fc15e5ba..2850609297cc6 100644 --- a/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php +++ b/src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php @@ -30,18 +30,12 @@ public function __construct(ManagerRegistry $managerRegistry) $this->managerRegistry = $managerRegistry; } - /** - * @return void - */ - public function onWorkerMessageHandled() + public function onWorkerMessageHandled(): void { $this->clearEntityManagers(); } - /** - * @return void - */ - public function onWorkerMessageFailed() + public function onWorkerMessageFailed(): void { $this->clearEntityManagers(); } diff --git a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php index 4a19f49cdbd93..68b184d1a4b9e 100644 --- a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php +++ b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php @@ -58,10 +58,7 @@ public function loadTokenBySeries(string $series): PersistentTokenInterface return new PersistentToken($row['class'], $row['username'], $series, $row['value'], new \DateTime($row['last_used'])); } - /** - * @return void - */ - public function deleteTokenBySeries(string $series) + public function deleteTokenBySeries(string $series): void { $sql = 'DELETE FROM rememberme_token WHERE series=:series'; $paramValues = ['series' => $series]; @@ -69,10 +66,7 @@ public function deleteTokenBySeries(string $series) $this->conn->executeStatement($sql, $paramValues, $paramTypes); } - /** - * @return void - */ - public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed) + public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed): void { $sql = 'UPDATE rememberme_token SET value=:value, lastUsed=:lastUsed WHERE series=:series'; $paramValues = [ @@ -92,10 +86,7 @@ public function updateToken(string $series, #[\SensitiveParameter] string $token } } - /** - * @return void - */ - public function createNewToken(PersistentTokenInterface $token) + public function createNewToken(PersistentTokenInterface $token): void { $sql = 'INSERT INTO rememberme_token (class, username, series, value, lastUsed) VALUES (:class, :username, :series, :value, :lastUsed)'; $paramValues = [ diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php index a69bcad8ef323..3e6f49a5258bb 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php @@ -37,12 +37,10 @@ public function __construct(ManagerRegistry $registry) /** * @param object $entity * - * @return void - * * @throws UnexpectedTypeException * @throws ConstraintDefinitionException */ - public function validate(mixed $entity, Constraint $constraint) + public function validate(mixed $entity, Constraint $constraint): void { if (!$constraint instanceof UniqueEntity) { throw new UnexpectedTypeException($constraint, UniqueEntity::class); diff --git a/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php b/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php index bf8a5feb9f9e3..be03b670f86b9 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php +++ b/src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php @@ -28,10 +28,7 @@ public function __construct(ManagerRegistry $registry) $this->registry = $registry; } - /** - * @return void - */ - public function initialize(object $object) + public function initialize(object $object): void { $this->registry->getManagerForClass($object::class)?->initializeObject($object); } diff --git a/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php b/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php index 5210e8eefafd5..fe24cdda5dee2 100644 --- a/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php +++ b/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php @@ -50,10 +50,7 @@ public function isEnabled(): bool return parent::isEnabled(); } - /** - * @return void - */ - protected function configure() + protected function configure(): void { if (!class_exists(ConsoleFormatter::class)) { return; diff --git a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php index ecb7337f70cf5..5840bcf5bdb0e 100644 --- a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php @@ -127,10 +127,8 @@ private function doHandle(array|LogRecord $record): bool /** * Sets the console output to use for printing logs. - * - * @return void */ - public function setOutput(OutputInterface $output) + public function setOutput(OutputInterface $output): void { $this->output = $output; } @@ -148,10 +146,8 @@ public function close(): void /** * Before a command is executed, the handler gets activated and the console output * is set in order to know where to write the logs. - * - * @return void */ - public function onCommand(ConsoleCommandEvent $event) + public function onCommand(ConsoleCommandEvent $event): void { $output = $event->getOutput(); if ($output instanceof ConsoleOutputInterface) { @@ -163,10 +159,8 @@ public function onCommand(ConsoleCommandEvent $event) /** * After a command has been executed, it disables the output. - * - * @return void */ - public function onTerminate(ConsoleTerminateEvent $event) + public function onTerminate(ConsoleTerminateEvent $event): void { $this->close(); } diff --git a/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php b/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php index bee2eb3864a8e..178cffeb79d9a 100644 --- a/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/MailerHandler.php @@ -75,10 +75,8 @@ private function doWrite(array|LogRecord $record): void * * @param string $content formatted email body to be sent * @param array $records the array of log records that formed this content - * - * @return void */ - protected function send(string $content, array $records) + protected function send(string $content, array $records): void { $this->mailer->send($this->buildMessage($content, $records)); } diff --git a/src/Symfony/Bridge/Monolog/Logger.php b/src/Symfony/Bridge/Monolog/Logger.php index 367b3351ff102..db9a435d05dea 100644 --- a/src/Symfony/Bridge/Monolog/Logger.php +++ b/src/Symfony/Bridge/Monolog/Logger.php @@ -40,10 +40,7 @@ public function countErrors(Request $request = null): int return 0; } - /** - * @return void - */ - public function clear() + public function clear(): void { if ($logger = $this->getDebugLogger()) { $logger->clear(); @@ -59,10 +56,7 @@ public function reset(): void } } - /** - * @return void - */ - public function removeDebugLogger() + public function removeDebugLogger(): void { foreach ($this->processors as $k => $processor) { if ($processor instanceof DebugLoggerInterface) { diff --git a/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php b/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php index ecb24a1948949..9b157cd7f2ef0 100644 --- a/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php +++ b/src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php @@ -45,18 +45,12 @@ private function doInvoke(array|LogRecord $record): array|LogRecord return $record; } - /** - * @return void - */ - public function reset() + public function reset(): void { unset($this->commandData); } - /** - * @return void - */ - public function addCommandData(ConsoleEvent $event) + public function addCommandData(ConsoleEvent $event): void { $this->commandData = [ 'name' => $event->getCommand()->getName(), diff --git a/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php b/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php index c1ce2898dab37..698d44539c686 100644 --- a/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php +++ b/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php @@ -90,19 +90,13 @@ public function countErrors(Request $request = null): int return array_sum($this->errorCount); } - /** - * @return void - */ - public function clear() + public function clear(): void { $this->records = []; $this->errorCount = []; } - /** - * @return void - */ - public function reset() + public function reset(): void { $this->clear(); } diff --git a/src/Symfony/Bridge/Twig/AppVariable.php b/src/Symfony/Bridge/Twig/AppVariable.php index 8bfaa0a22c601..50b53d2c88886 100644 --- a/src/Symfony/Bridge/Twig/AppVariable.php +++ b/src/Symfony/Bridge/Twig/AppVariable.php @@ -32,34 +32,22 @@ class AppVariable private bool $debug; private LocaleSwitcher $localeSwitcher; - /** - * @return void - */ - public function setTokenStorage(TokenStorageInterface $tokenStorage) + public function setTokenStorage(TokenStorageInterface $tokenStorage): void { $this->tokenStorage = $tokenStorage; } - /** - * @return void - */ - public function setRequestStack(RequestStack $requestStack) + public function setRequestStack(RequestStack $requestStack): void { $this->requestStack = $requestStack; } - /** - * @return void - */ - public function setEnvironment(string $environment) + public function setEnvironment(string $environment): void { $this->environment = $environment; } - /** - * @return void - */ - public function setDebug(bool $debug) + public function setDebug(bool $debug): void { $this->debug = $debug; } diff --git a/src/Symfony/Bridge/Twig/Command/DebugCommand.php b/src/Symfony/Bridge/Twig/Command/DebugCommand.php index 43e4d9c9f12c6..5d153c218b73e 100644 --- a/src/Symfony/Bridge/Twig/Command/DebugCommand.php +++ b/src/Symfony/Bridge/Twig/Command/DebugCommand.php @@ -59,10 +59,7 @@ public function __construct(Environment $twig, string $projectDir = null, array $this->fileLinkFormatter = $fileLinkFormatter; } - /** - * @return void - */ - protected function configure() + protected function configure(): void { $this ->setDefinition([ diff --git a/src/Symfony/Bridge/Twig/Command/LintCommand.php b/src/Symfony/Bridge/Twig/Command/LintCommand.php index e059740a1375d..77427920d3ed7 100644 --- a/src/Symfony/Bridge/Twig/Command/LintCommand.php +++ b/src/Symfony/Bridge/Twig/Command/LintCommand.php @@ -48,10 +48,7 @@ public function __construct( parent::__construct(); } - /** - * @return void - */ - protected function configure() + protected function configure(): void { $this ->addOption('format', null, InputOption::VALUE_REQUIRED, sprintf('The output format ("%s")', implode('", "', $this->getAvailableFormatOptions()))) diff --git a/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php b/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php index ef0f9ba9544e0..f5962debd3e62 100644 --- a/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php +++ b/src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php @@ -28,10 +28,7 @@ public function __construct( ) { } - /** - * @return void - */ - public function onKernelView(ViewEvent $event) + public function onKernelView(ViewEvent $event): void { $parameters = $event->getControllerResult(); diff --git a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php index fbe8e0b3e43dc..d07e6e1c9dc9f 100644 --- a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php +++ b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php @@ -132,10 +132,8 @@ protected function loadResourceForBlockName(string $cacheKey, FormView $view, st * to initialize the theme first. Any changes made to * this variable will be kept and be available upon * further calls to this method using the same theme. - * - * @return void */ - protected function loadResourcesFromTheme(string $cacheKey, mixed &$theme) + protected function loadResourcesFromTheme(string $cacheKey, mixed &$theme): void { if (!$theme instanceof Template) { $theme = $this->environment->load($theme)->unwrap(); diff --git a/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php b/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php index 2b44c5ef8d90a..8a911ea03cfe9 100644 --- a/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php +++ b/src/Symfony/Bridge/Twig/Translation/TwigExtractor.php @@ -45,10 +45,7 @@ public function __construct(Environment $twig) $this->twig = $twig; } - /** - * @return void - */ - public function extract($resource, MessageCatalogue $catalogue) + public function extract($resource, MessageCatalogue $catalogue): void { foreach ($this->extractFiles($resource) as $file) { try { @@ -59,18 +56,12 @@ public function extract($resource, MessageCatalogue $catalogue) } } - /** - * @return void - */ - public function setPrefix(string $prefix) + public function setPrefix(string $prefix): void { $this->prefix = $prefix; } - /** - * @return void - */ - protected function extractTemplate(string $template, MessageCatalogue $catalogue) + protected function extractTemplate(string $template, MessageCatalogue $catalogue): void { $visitor = $this->twig->getExtension(TranslationExtension::class)->getTranslationNodeVisitor(); $visitor->enable(); diff --git a/src/Symfony/Bundle/DebugBundle/DebugBundle.php b/src/Symfony/Bundle/DebugBundle/DebugBundle.php index 9782bf8e39899..bed1ee86412b7 100644 --- a/src/Symfony/Bundle/DebugBundle/DebugBundle.php +++ b/src/Symfony/Bundle/DebugBundle/DebugBundle.php @@ -22,10 +22,7 @@ */ class DebugBundle extends Bundle { - /** - * @return void - */ - public function boot() + public function boot(): void { if ($this->container->getParameter('kernel.debug')) { $container = $this->container; @@ -52,20 +49,14 @@ public function boot() } } - /** - * @return void - */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); $container->addCompilerPass(new DumpDataCollectorPass()); } - /** - * @return void - */ - public function registerCommands(Application $application) + public function registerCommands(Application $application): void { // noop } diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php index cecce87c4a4e7..bccac3003de58 100644 --- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php +++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php @@ -22,10 +22,7 @@ */ class DumpDataCollectorPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('data_collector.dump')) { return; diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php index eadeafba55832..c6efae4b6cc0b 100644 --- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php +++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php @@ -23,16 +23,11 @@ use Symfony\Component\VarDumper\Dumper\HtmlDumper; /** - * DebugExtension. - * * @author Nicolas Grekas */ class DebugExtension extends Extension { - /** - * @return void - */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php index 94b95e5029b7a..479bbfe6ae18c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php @@ -28,10 +28,7 @@ */ abstract class AbstractConfigCommand extends ContainerDebugCommand { - /** - * @return void - */ - protected function listBundles(OutputInterface|StyleInterface $output) + protected function listBundles(OutputInterface|StyleInterface $output): void { $title = 'Available registered bundles with their extension alias if available'; $headers = ['Bundle name', 'Extension alias']; @@ -159,10 +156,7 @@ protected function findExtension(string $name): ExtensionInterface throw new LogicException($message); } - /** - * @return void - */ - public function validateConfiguration(ExtensionInterface $extension, mixed $configuration) + public function validateConfiguration(ExtensionInterface $extension, mixed $configuration): void { if (!$configuration) { throw new \LogicException(sprintf('The extension with alias "%s" does not have its getConfiguration() method setup.', $extension->getAlias())); diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php index 0451b31fe1490..80a2f4935d0dc 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php @@ -51,10 +51,7 @@ public function getKernel(): KernelInterface return $this->kernel; } - /** - * @return void - */ - public function reset() + public function reset(): void { if ($this->kernel->getContainer()->has('services_resetter')) { $this->kernel->getContainer()->get('services_resetter')->reset(); @@ -133,10 +130,7 @@ public function add(Command $command): ?Command return parent::add($command); } - /** - * @return void - */ - protected function registerCommands() + protected function registerCommands(): void { if ($this->commandsRegistered) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php index d0aca7a06bf06..5c8a470c1b126 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php @@ -17,10 +17,7 @@ class AddDebugLogProcessorPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('profiler')) { return; @@ -37,10 +34,7 @@ public function process(ContainerBuilder $container) $definition->addMethodCall('pushProcessor', [new Reference('debug.log_processor')]); } - /** - * @return void - */ - public static function configureLogger(mixed $logger) + public static function configureLogger(mixed $logger): void { if (\is_object($logger) && method_exists($logger, 'removeDebugLogger') && \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) { $logger->removeDebugLogger(); diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php index 5442b277348e3..c816ef403e9d6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php @@ -22,10 +22,7 @@ */ class AddExpressionLanguageProvidersPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { // routing if ($container->has('router.default')) { diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php index e8c2ad3a0e031..c4b99c5689f7a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php @@ -18,10 +18,7 @@ class AssetsContextPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('assets.context')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php index 1e08ef314941a..e4023e623ef45 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php @@ -25,10 +25,7 @@ */ class ContainerBuilderDebugDumpPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->getParameter('debug.container.dump')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php index e66e98b451d6c..c6730ceb08fdd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DataCollectorTranslatorPass.php @@ -20,10 +20,7 @@ */ class DataCollectorTranslatorPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->has('translator')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php index b7cb920bf7434..3f4a3926c8feb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php @@ -22,10 +22,7 @@ */ class LoggingTranslatorPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasAlias('logger') || !$container->hasAlias('translator')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php index c2d669fe1cf3a..68ee76d4bf98a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php @@ -24,10 +24,7 @@ */ class ProfilerPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (false === $container->hasDefinition('profiler')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php index fedc30d06eec4..7f0ec5f896405 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php @@ -19,10 +19,7 @@ */ class RemoveUnusedSessionMarshallingHandlerPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('session.marshalling_handler')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php index aed3b13404bd5..68a6ee103a0a0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php @@ -21,10 +21,7 @@ */ class TestServiceContainerRealRefPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('test.private_services_locator')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php index 6e7669a710eb2..3b3dfcc066f45 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php @@ -21,10 +21,7 @@ */ class TestServiceContainerWeakRefPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('test.private_services_locator')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php index b04516410fbf4..ae5daac8eee15 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php @@ -105,10 +105,7 @@ class UnusedTagsPass implements CompilerPassInterface 'workflow', ]; - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $tags = array_unique(array_merge($container->findTags(), self::KNOWN_TAGS)); diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php index bda9ca9515258..394628c5d112f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php @@ -21,10 +21,7 @@ */ class WorkflowGuardListenerPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasParameter('workflow.has_guard_listeners')) { return; diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index cb855a9c2c640..4b79ab73634fc 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -207,11 +207,9 @@ class FrameworkExtension extends Extension /** * Responds to the app.config configuration parameter. * - * @return void - * * @throws LogicException */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config')); diff --git a/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php b/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php index 339b28e83c695..fa289c6830db9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php +++ b/src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php @@ -90,10 +90,7 @@ class_exists(Registry::class); */ class FrameworkBundle extends Bundle { - /** - * @return void - */ - public function boot() + public function boot(): void { $_ENV['DOCTRINE_DEPRECATIONS'] = $_SERVER['DOCTRINE_DEPRECATIONS'] ??= 'trigger'; @@ -115,10 +112,7 @@ public function boot() } } - /** - * @return void - */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); diff --git a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php index f82e1fb209d77..878c36af7fcf4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php @@ -129,10 +129,7 @@ public function registerBundles(): iterable } } - /** - * @return void - */ - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(function (ContainerBuilder $container) use ($loader) { $container->loadFromExtension('framework', [ diff --git a/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php b/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php index 0379be8f5bc97..694714faa0feb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php +++ b/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php @@ -39,9 +39,6 @@ public function __construct(KernelInterface $kernel, array $server = [], History parent::__construct($kernel, $server, $history, $cookieJar); } - /** - * Returns the container. - */ public function getContainer(): ContainerInterface { $container = $this->kernel->getContainer(); @@ -49,9 +46,6 @@ public function getContainer(): ContainerInterface return $container->has('test.service_container') ? $container->get('test.service_container') : $container; } - /** - * Returns the kernel. - */ public function getKernel(): KernelInterface { return $this->kernel; @@ -73,10 +67,8 @@ public function getProfile(): HttpProfile|false|null * Enables the profiler for the very next request. * * If the profiler is not enabled, the call to this method does nothing. - * - * @return void */ - public function enableProfiler() + public function enableProfiler(): void { if ($this->getContainer()->has('profiler')) { $this->profiler = true; @@ -88,20 +80,16 @@ public function enableProfiler() * * By default, the Client reboots the Kernel for each request. This method * allows to keep the same kernel across requests. - * - * @return void */ - public function disableReboot() + public function disableReboot(): void { $this->reboot = false; } /** * Enables kernel reboot between requests. - * - * @return void */ - public function enableReboot() + public function enableReboot(): void { $this->reboot = true; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php b/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php index ec03f849793df..ac760405ce151 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php +++ b/src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php @@ -24,10 +24,8 @@ class AnnotatedRouteControllerLoader extends AnnotationClassLoader { /** * Configures the _controller default parameter of a given Route instance. - * - * @return void */ - protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot) + protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot): void { if ('__invoke' === $method->getName()) { $route->setDefault('_controller', $class->getName()); diff --git a/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php b/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php index b3eb0c6bc337c..ac2078f6d291c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php +++ b/src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php @@ -40,10 +40,7 @@ protected function validateName(string $name): void } } - /** - * @return string - */ - protected function getPrettyPath(string $path) + protected function getPrettyPath(string $path): string { return str_replace(getcwd().\DIRECTORY_SEPARATOR, '', $path); } diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php index bb5560a7b5947..639214a439cfc 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php @@ -84,10 +84,8 @@ protected static function bootKernel(array $options = []): KernelInterface * used by other services. * * Using this method is the best way to get a container from your test code. - * - * @return Container */ - protected static function getContainer(): ContainerInterface + protected static function getContainer(): Container { if (!static::$booted) { static::bootKernel(); diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php index dac3b6394fce8..3cce60ec111bf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php @@ -118,10 +118,7 @@ public function warmUp(string $cacheDir): array return []; } - /** - * @return void - */ - public function addResource(string $format, mixed $resource, string $locale, string $domain = null) + public function addResource(string $format, mixed $resource, string $locale, string $domain = null): void { if ($this->resourceFiles) { $this->addResourceFiles(); @@ -129,10 +126,7 @@ public function addResource(string $format, mixed $resource, string $locale, str $this->resources[] = [$format, $resource, $locale, $domain]; } - /** - * @return void - */ - protected function initializeCatalogue(string $locale) + protected function initializeCatalogue(string $locale): void { $this->initialize(); parent::initializeCatalogue($locale); @@ -151,10 +145,7 @@ protected function doLoadCatalogue(string $locale): void } } - /** - * @return void - */ - protected function initialize() + protected function initialize(): void { if ($this->resourceFiles) { $this->addResourceFiles(); diff --git a/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php b/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php index bb5fe03096466..9e498aff071af 100644 --- a/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php +++ b/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php @@ -28,10 +28,7 @@ final class TraceableFirewallListener extends FirewallListener private array $wrappedListeners = []; private array $authenticatorsInfo = []; - /** - * @return array - */ - public function getWrappedListeners() + public function getWrappedListeners(): array { return $this->wrappedListeners; } diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php index 08d7fd9213df8..1dd53d5a06faf 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php @@ -22,10 +22,7 @@ */ class AddExpressionLanguageProvidersPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if ($container->has('security.expression_language')) { $definition = $container->findDefinition('security.expression_language'); diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php index 8a2bad79a140c..1664f8e760853 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php @@ -29,10 +29,7 @@ class AddSecurityVotersPass implements CompilerPassInterface { use PriorityTaggedServiceTrait; - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('security.access.decision_manager')) { return; diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php index 9a7a94ca08786..8bab747d8d25e 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php @@ -21,10 +21,7 @@ */ class AddSessionDomainConstraintPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasParameter('session.storage.options') || !$container->has('security.http_utils')) { return; diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php index 2041a36b3806d..465bdbe767f4d 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php @@ -21,10 +21,7 @@ */ class CleanRememberMeVerifierPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('cache.system')) { $container->removeDefinition('cache.security_token_verifier'); diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php index e7c77d1ec31d8..85f2f2955a61a 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php @@ -22,10 +22,7 @@ */ class MakeFirewallsEventDispatcherTraceablePass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->has('event_dispatcher') || !$container->hasParameter('security.firewalls')) { return; diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php index 3ca2a70acb934..4dc4c4c949c7f 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php @@ -23,10 +23,7 @@ */ class RegisterEntryPointPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasParameter('security.firewalls')) { return; diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index 24eb1377c51c2..3dd768b7730d2 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -52,10 +52,7 @@ final public function addOption(string $name, mixed $default = null): void $this->options[$name] = $default; } - /** - * @return void - */ - public function addConfiguration(NodeDefinition $node) + public function addConfiguration(NodeDefinition $node): void { $builder = $node->children(); @@ -75,10 +72,7 @@ public function addConfiguration(NodeDefinition $node) } } - /** - * @return string - */ - protected function createAuthenticationSuccessHandler(ContainerBuilder $container, string $id, array $config) + protected function createAuthenticationSuccessHandler(ContainerBuilder $container, string $id, array $config): string { $successHandlerId = $this->getSuccessHandlerId($id); $options = array_intersect_key($config, $this->defaultSuccessHandlerOptions); @@ -97,10 +91,7 @@ protected function createAuthenticationSuccessHandler(ContainerBuilder $containe return $successHandlerId; } - /** - * @return string - */ - protected function createAuthenticationFailureHandler(ContainerBuilder $container, string $id, array $config) + protected function createAuthenticationFailureHandler(ContainerBuilder $container, string $id, array $config): string { $id = $this->getFailureHandlerId($id); $options = array_intersect_key($config, $this->defaultFailureHandlerOptions); @@ -117,18 +108,12 @@ protected function createAuthenticationFailureHandler(ContainerBuilder $containe return $id; } - /** - * @return string - */ - protected function getSuccessHandlerId(string $id) + protected function getSuccessHandlerId(string $id): string { return 'security.authentication.success_handler.'.$id.'.'.str_replace('-', '_', $this->getKey()); } - /** - * @return string - */ - protected function getFailureHandlerId(string $id) + protected function getFailureHandlerId(string $id): string { return 'security.authentication.failure_handler.'.$id.'.'.str_replace('-', '_', $this->getKey()); } diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php index 8082b6f3524b5..c9a3a02900689 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php @@ -30,10 +30,7 @@ public function getPriority(): int; */ public function getKey(): string; - /** - * @return void - */ - public function addConfiguration(NodeDefinition $builder); + public function addConfiguration(NodeDefinition $builder): void; /** * Creates the authenticator service(s) for the provided configuration. diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php index 936f58a084222..0521f90163c6c 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php @@ -24,10 +24,7 @@ */ class InMemoryFactory implements UserProviderFactoryInterface { - /** - * @return void - */ - public function create(ContainerBuilder $container, string $id, array $config) + public function create(ContainerBuilder $container, string $id, array $config): void { $definition = $container->setDefinition($id, new ChildDefinition('security.user.provider.in_memory')); $defaultPassword = new Parameter('container.build_id'); @@ -40,18 +37,12 @@ public function create(ContainerBuilder $container, string $id, array $config) $definition->addArgument($users); } - /** - * @return string - */ - public function getKey() + public function getKey(): string { return 'memory'; } - /** - * @return void - */ - public function addConfiguration(NodeDefinition $node) + public function addConfiguration(NodeDefinition $node): void { $node ->fixXmlConfig('user') diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php index 2f4dca01d1598..a719b3f0d955e 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php @@ -24,10 +24,7 @@ */ class LdapFactory implements UserProviderFactoryInterface { - /** - * @return void - */ - public function create(ContainerBuilder $container, string $id, array $config) + public function create(ContainerBuilder $container, string $id, array $config): void { $container ->setDefinition($id, new ChildDefinition('security.user.provider.ldap')) @@ -43,18 +40,12 @@ public function create(ContainerBuilder $container, string $id, array $config) ; } - /** - * @return string - */ - public function getKey() + public function getKey(): string { return 'ldap'; } - /** - * @return void - */ - public function addConfiguration(NodeDefinition $node) + public function addConfiguration(NodeDefinition $node): void { $node ->fixXmlConfig('extra_field') diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php index a2c5815e4bfac..d5a15ac1b7c6b 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php @@ -22,18 +22,9 @@ */ interface UserProviderFactoryInterface { - /** - * @return void - */ - public function create(ContainerBuilder $container, string $id, array $config); + public function create(ContainerBuilder $container, string $id, array $config): void; - /** - * @return string - */ - public function getKey(); + public function getKey(): string; - /** - * @return void - */ - public function addConfiguration(NodeDefinition $builder); + public function addConfiguration(NodeDefinition $builder): void; } diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php index 08cabe52ce3cb..2224aab17be8e 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php @@ -79,10 +79,7 @@ class SecurityExtension extends Extension implements PrependExtensionInterface private array $sortedFactories = []; private array $userProviderFactories = []; - /** - * @return void - */ - public function prepend(ContainerBuilder $container) + public function prepend(ContainerBuilder $container): void { foreach ($this->getSortedFactories() as $factory) { if ($factory instanceof PrependExtensionInterface) { @@ -91,10 +88,7 @@ public function prepend(ContainerBuilder $container) } } - /** - * @return void - */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { if (!array_filter($configs)) { throw new InvalidArgumentException(sprintf('Enabling bundle "%s" and not configuring it is not allowed.', SecurityBundle::class)); diff --git a/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php b/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php index 0c703f79cfb43..4c63ec18d120d 100644 --- a/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php +++ b/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php @@ -36,10 +36,7 @@ public function __construct(FirewallMapInterface $map, EventDispatcherInterface parent::__construct($map, $dispatcher); } - /** - * @return void - */ - public function configureLogoutUrlGenerator(RequestEvent $event) + public function configureLogoutUrlGenerator(RequestEvent $event): void { if (!$event->isMainRequest()) { return; @@ -50,10 +47,7 @@ public function configureLogoutUrlGenerator(RequestEvent $event) } } - /** - * @return void - */ - public function onKernelFinishRequest(FinishRequestEvent $event) + public function onKernelFinishRequest(FinishRequestEvent $event): void { if ($event->isMainRequest()) { $this->logoutUrlGenerator->setCurrentFirewall(null); diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php index 5077c6768d95e..fe0e3704aacf5 100644 --- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php +++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php @@ -38,10 +38,7 @@ public function __construct(iterable $listeners, ExceptionListener $exceptionLis $this->config = $config; } - /** - * @return FirewallConfig|null - */ - public function getConfig() + public function getConfig(): ?FirewallConfig { return $this->config; } @@ -54,18 +51,12 @@ public function getListeners(): iterable return $this->listeners; } - /** - * @return ExceptionListener|null - */ - public function getExceptionListener() + public function getExceptionListener(): ?ExceptionListener { return $this->exceptionListener; } - /** - * @return LogoutListener|null - */ - public function getLogoutListener() + public function getLogoutListener(): ?LogoutListener { return $this->logoutListener; } diff --git a/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php b/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php index 2cbca705f93c1..b2e81a7f4b92b 100644 --- a/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php +++ b/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php @@ -56,10 +56,7 @@ */ class SecurityBundle extends Bundle { - /** - * @return void - */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php index 63dd68e91b90d..58aa921686204 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php @@ -25,10 +25,7 @@ */ class ExtensionPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!class_exists(Packages::class)) { $container->removeDefinition('twig.extension.assets'); diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php index ecb99ce20ea08..275f5c9c83db2 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php @@ -21,10 +21,7 @@ */ class RuntimeLoaderPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('twig.runtime_loader')) { return; diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php index 99b975edea3a0..104464b01082d 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php @@ -24,10 +24,7 @@ class TwigEnvironmentPass implements CompilerPassInterface { use PriorityTaggedServiceTrait; - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (false === $container->hasDefinition('twig')) { return; diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php index 1da7e8679724f..b4d359e1963df 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php @@ -23,10 +23,7 @@ */ class TwigLoaderPass implements CompilerPassInterface { - /** - * @return void - */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (false === $container->hasDefinition('twig')) { return; diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php index b3eec9ff60e34..a57ad7c3d3fa0 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php @@ -42,10 +42,7 @@ public function __construct(string $dateFormat, string $intervalFormat, ?string $this->thousandsSeparator = $thousandsSeparator; } - /** - * @return void - */ - public function configure(Environment $environment) + public function configure(Environment $environment): void { $environment->getExtension(CoreExtension::class)->setDateFormat($this->dateFormat, $this->intervalFormat); diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php index f257f60298bb6..f606e7ae4b591 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php @@ -36,10 +36,7 @@ */ class TwigExtension extends Extension { - /** - * @return void - */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('twig.php'); diff --git a/src/Symfony/Bundle/TwigBundle/TwigBundle.php b/src/Symfony/Bundle/TwigBundle/TwigBundle.php index 802cb536d123f..5ff13b1bc8687 100644 --- a/src/Symfony/Bundle/TwigBundle/TwigBundle.php +++ b/src/Symfony/Bundle/TwigBundle/TwigBundle.php @@ -27,10 +27,7 @@ */ class TwigBundle extends Bundle { - /** - * @return void - */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); @@ -41,10 +38,7 @@ public function build(ContainerBuilder $container) $container->addCompilerPass(new RuntimeLoaderPass(), PassConfig::TYPE_BEFORE_REMOVING); } - /** - * @return void - */ - public function registerCommands(Application $application) + public function registerCommands(Application $application): void { // noop } diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php index 16e6db29eeaff..6ad6982ce487b 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php @@ -37,10 +37,8 @@ class WebProfilerExtension extends Extension * Loads the web profiler configuration. * * @param array $configs An array of configuration settings - * - * @return void */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $configuration = $this->getConfiguration($configs, $container); $config = $this->processConfiguration($configuration, $configs); diff --git a/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php b/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php index 264b26c92562d..8b45f661a7c98 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php +++ b/src/Symfony/Bundle/WebProfilerBundle/WebProfilerBundle.php @@ -18,10 +18,7 @@ */ class WebProfilerBundle extends Bundle { - /** - * @return void - */ - public function boot() + public function boot(): void { if ('prod' === $this->container->getParameter('kernel.environment')) { @trigger_error('Using WebProfilerBundle in production is not supported and puts your project at risk, disable it.', \E_USER_WARNING); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy