From 37b6f98e926d6283b3b85eb6f29b136abd95b3a1 Mon Sep 17 00:00:00 2001 From: Mathieu Grauwin Date: Fri, 21 Jul 2023 11:08:34 +0200 Subject: [PATCH] Fix Symfony 6.x deprecations --- .../RollerworksPasswordStrengthExtension.php | 4 ++-- tests/DependencyInjection/MakeAllServicesPublicPass.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DependencyInjection/RollerworksPasswordStrengthExtension.php b/src/DependencyInjection/RollerworksPasswordStrengthExtension.php index 644b069..a1cb5db 100644 --- a/src/DependencyInjection/RollerworksPasswordStrengthExtension.php +++ b/src/DependencyInjection/RollerworksPasswordStrengthExtension.php @@ -27,7 +27,7 @@ final class RollerworksPasswordStrengthExtension extends Extension implements PrependExtensionInterface { - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); @@ -50,7 +50,7 @@ public function load(array $configs, ContainerBuilder $container) /** * Allow an extension to prepend the extension configurations. */ - public function prepend(ContainerBuilder $container) + public function prepend(ContainerBuilder $container): void { $container->prependExtensionConfig('framework', [ 'translator' => [ diff --git a/tests/DependencyInjection/MakeAllServicesPublicPass.php b/tests/DependencyInjection/MakeAllServicesPublicPass.php index d5ad606..35681d4 100644 --- a/tests/DependencyInjection/MakeAllServicesPublicPass.php +++ b/tests/DependencyInjection/MakeAllServicesPublicPass.php @@ -16,7 +16,7 @@ final class MakeAllServicesPublicPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { foreach ($container->getDefinitions() as $def) { $def->setPublic(true);