From 3dc9dfc6b03beed599a4c7685dc0886db8123525 Mon Sep 17 00:00:00 2001 From: Hannes <31671206+xJuvi@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:38:44 +0200 Subject: [PATCH] add twig extra bundle missign return types --- .../Compiler/MissingExtensionSuggestorPass.php | 3 +-- .../DependencyInjection/TwigExtraExtension.php | 3 +-- extra/twig-extra-bundle/TwigExtraBundle.php | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/extra/twig-extra-bundle/DependencyInjection/Compiler/MissingExtensionSuggestorPass.php b/extra/twig-extra-bundle/DependencyInjection/Compiler/MissingExtensionSuggestorPass.php index 83c6643f09d..15b3f14d2c8 100644 --- a/extra/twig-extra-bundle/DependencyInjection/Compiler/MissingExtensionSuggestorPass.php +++ b/extra/twig-extra-bundle/DependencyInjection/Compiler/MissingExtensionSuggestorPass.php @@ -17,8 +17,7 @@ class MissingExtensionSuggestorPass implements CompilerPassInterface { - /** @return void */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if ($container->getParameter('kernel.debug')) { $twigDefinition = $container->getDefinition('twig'); diff --git a/extra/twig-extra-bundle/DependencyInjection/TwigExtraExtension.php b/extra/twig-extra-bundle/DependencyInjection/TwigExtraExtension.php index 8c399b891ce..cc99a6f025a 100644 --- a/extra/twig-extra-bundle/DependencyInjection/TwigExtraExtension.php +++ b/extra/twig-extra-bundle/DependencyInjection/TwigExtraExtension.php @@ -23,8 +23,7 @@ */ class TwigExtraExtension 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(\dirname(__DIR__).'/Resources/config')); $configuration = $this->getConfiguration($configs, $container); diff --git a/extra/twig-extra-bundle/TwigExtraBundle.php b/extra/twig-extra-bundle/TwigExtraBundle.php index a9c8f734bf8..ee65985b656 100644 --- a/extra/twig-extra-bundle/TwigExtraBundle.php +++ b/extra/twig-extra-bundle/TwigExtraBundle.php @@ -17,8 +17,7 @@ class TwigExtraBundle extends Bundle { - /** @return void */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container);