From 2a8e3edf0ee7d1bd5ef0055af325f8573ed18f21 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Wed, 4 Sep 2024 12:27:04 +0200 Subject: [PATCH] =?UTF-8?q?Nutze=20den=20DebugClassLoader,=20um=20fehlende?= =?UTF-8?q?=20Return=20Types=20aufzusp=C3=BCren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 1 + phpunit.xml.dist | 4 ++-- src/DependencyInjection/Compiler/ShortcodeCompilerPass.php | 2 +- src/DependencyInjection/WebfactoryShortcodeExtension.php | 2 +- tests/Fixtures/TestKernel.php | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 058e7f0..9d2eea7 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "require-dev": { "phpunit/phpunit": "^10.5", "symfony/browser-kit": "^5.4|^6.0|^7.0", + "symfony/error-handler": "^5.4|^6.0|^7.1", "symfony/expression-language": "^5.4|^6.0|^7.0", "symfony/framework-bundle": "^5.4|^6.0|^7.0", "symfony/phpunit-bridge": ">= 6.0", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 6d88312..813d07a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,11 +1,11 @@ - + - + diff --git a/src/DependencyInjection/Compiler/ShortcodeCompilerPass.php b/src/DependencyInjection/Compiler/ShortcodeCompilerPass.php index 847b995..43d1f70 100644 --- a/src/DependencyInjection/Compiler/ShortcodeCompilerPass.php +++ b/src/DependencyInjection/Compiler/ShortcodeCompilerPass.php @@ -13,7 +13,7 @@ */ class ShortcodeCompilerPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $shortcodeServices = $container->findTaggedServiceIds('webfactory.shortcode'); diff --git a/src/DependencyInjection/WebfactoryShortcodeExtension.php b/src/DependencyInjection/WebfactoryShortcodeExtension.php index e35e9cb..91fdf2b 100644 --- a/src/DependencyInjection/WebfactoryShortcodeExtension.php +++ b/src/DependencyInjection/WebfactoryShortcodeExtension.php @@ -13,7 +13,7 @@ */ final class WebfactoryShortcodeExtension extends Extension { - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('shortcodes.xml'); diff --git a/tests/Fixtures/TestKernel.php b/tests/Fixtures/TestKernel.php index 4afecbc..873cc33 100644 --- a/tests/Fixtures/TestKernel.php +++ b/tests/Fixtures/TestKernel.php @@ -19,7 +19,7 @@ public function registerBundles(): array ]; } - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(__DIR__.'/config/config.yml'); $loader->load(__DIR__.'/config/test_shortcodes.xml');