From 7b58e8b59d4f412954f2ec41c62fcfb6481a117e Mon Sep 17 00:00:00 2001 From: Derek Stephen McLean Date: Tue, 26 Sep 2023 10:30:13 +0200 Subject: [PATCH] add void return signatures --- Command/ExtractTranslationCommand.php | 2 +- Command/ResourcesListCommand.php | 2 +- DependencyInjection/Compiler/IntegrationPass.php | 2 +- DependencyInjection/Compiler/MountDumpersPass.php | 2 +- DependencyInjection/Compiler/MountExtractorsPass.php | 2 +- DependencyInjection/Compiler/MountFileVisitorsPass.php | 2 +- DependencyInjection/Compiler/MountLoadersPass.php | 2 +- DependencyInjection/JMSTranslationExtension.php | 2 +- JMSTranslationBundle.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Command/ExtractTranslationCommand.php b/Command/ExtractTranslationCommand.php index 3831c09e..fbd3cb8a 100644 --- a/Command/ExtractTranslationCommand.php +++ b/Command/ExtractTranslationCommand.php @@ -64,7 +64,7 @@ public function __construct(ConfigFactory $configFactory, Updater $updater, arra /** * {@inheritdoc} */ - protected function configure() + protected function configure(): void { $this ->setName('jms:translation:extract') diff --git a/Command/ResourcesListCommand.php b/Command/ResourcesListCommand.php index b7816bee..313dd1a3 100644 --- a/Command/ResourcesListCommand.php +++ b/Command/ResourcesListCommand.php @@ -59,7 +59,7 @@ public function __construct(string $projectDir, array $bundles, ?string $rootDir /** * {@inheritdoc} */ - protected function configure() + protected function configure(): void { $this ->setName('jms:translation:list-resources') diff --git a/DependencyInjection/Compiler/IntegrationPass.php b/DependencyInjection/Compiler/IntegrationPass.php index b25c9b32..99e5466a 100644 --- a/DependencyInjection/Compiler/IntegrationPass.php +++ b/DependencyInjection/Compiler/IntegrationPass.php @@ -25,7 +25,7 @@ class IntegrationPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('translation.loader.xliff')) { return; diff --git a/DependencyInjection/Compiler/MountDumpersPass.php b/DependencyInjection/Compiler/MountDumpersPass.php index a53061b2..2ba046ee 100644 --- a/DependencyInjection/Compiler/MountDumpersPass.php +++ b/DependencyInjection/Compiler/MountDumpersPass.php @@ -28,7 +28,7 @@ class MountDumpersPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('jms_translation.file_writer')) { return; diff --git a/DependencyInjection/Compiler/MountExtractorsPass.php b/DependencyInjection/Compiler/MountExtractorsPass.php index 7b40c7e5..12deff22 100644 --- a/DependencyInjection/Compiler/MountExtractorsPass.php +++ b/DependencyInjection/Compiler/MountExtractorsPass.php @@ -27,7 +27,7 @@ class MountExtractorsPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('jms_translation.extractor_manager')) { return; diff --git a/DependencyInjection/Compiler/MountFileVisitorsPass.php b/DependencyInjection/Compiler/MountFileVisitorsPass.php index d303e7ca..805420b5 100644 --- a/DependencyInjection/Compiler/MountFileVisitorsPass.php +++ b/DependencyInjection/Compiler/MountFileVisitorsPass.php @@ -26,7 +26,7 @@ class MountFileVisitorsPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('jms_translation.extractor.file_extractor')) { return; diff --git a/DependencyInjection/Compiler/MountLoadersPass.php b/DependencyInjection/Compiler/MountLoadersPass.php index f69ad68e..bd8365fe 100644 --- a/DependencyInjection/Compiler/MountLoadersPass.php +++ b/DependencyInjection/Compiler/MountLoadersPass.php @@ -28,7 +28,7 @@ class MountLoadersPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('jms_translation.loader_manager')) { return; diff --git a/DependencyInjection/JMSTranslationExtension.php b/DependencyInjection/JMSTranslationExtension.php index 4321cdca..faf4b713 100644 --- a/DependencyInjection/JMSTranslationExtension.php +++ b/DependencyInjection/JMSTranslationExtension.php @@ -29,7 +29,7 @@ class JMSTranslationExtension extends Extension { - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $config = $this->processConfiguration(new Configuration($container), $configs); diff --git a/JMSTranslationBundle.php b/JMSTranslationBundle.php index 4349eec6..57094e95 100644 --- a/JMSTranslationBundle.php +++ b/JMSTranslationBundle.php @@ -30,7 +30,7 @@ class JMSTranslationBundle extends Bundle { const VERSION = '1.1.0-DEV'; - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { $container->addCompilerPass(new IntegrationPass()); $container->addCompilerPass(new MountFileVisitorsPass());