diff --git a/DependencyInjection/Compiler/AddProcessorsPass.php b/DependencyInjection/Compiler/AddProcessorsPass.php index cc99b67d..0dbd1707 100644 --- a/DependencyInjection/Compiler/AddProcessorsPass.php +++ b/DependencyInjection/Compiler/AddProcessorsPass.php @@ -25,7 +25,7 @@ */ class AddProcessorsPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('monolog.logger')) { return; diff --git a/DependencyInjection/Compiler/AddSwiftMailerTransportPass.php b/DependencyInjection/Compiler/AddSwiftMailerTransportPass.php index 2669bdd9..51c9e95f 100644 --- a/DependencyInjection/Compiler/AddSwiftMailerTransportPass.php +++ b/DependencyInjection/Compiler/AddSwiftMailerTransportPass.php @@ -25,7 +25,7 @@ */ class AddSwiftMailerTransportPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $handlers = $container->getParameter('monolog.swift_mailer.handlers'); diff --git a/DependencyInjection/Compiler/DebugHandlerPass.php b/DependencyInjection/Compiler/DebugHandlerPass.php index b076f162..16602930 100644 --- a/DependencyInjection/Compiler/DebugHandlerPass.php +++ b/DependencyInjection/Compiler/DebugHandlerPass.php @@ -36,7 +36,7 @@ public function __construct(LoggerChannelPass $channelPass) $this->channelPass = $channelPass; } - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('profiler')) { return; diff --git a/DependencyInjection/Compiler/FixEmptyLoggerPass.php b/DependencyInjection/Compiler/FixEmptyLoggerPass.php index 9d9599bc..c098d306 100644 --- a/DependencyInjection/Compiler/FixEmptyLoggerPass.php +++ b/DependencyInjection/Compiler/FixEmptyLoggerPass.php @@ -40,7 +40,7 @@ public function __construct(LoggerChannelPass $channelPass) $this->channelPass = $channelPass; } - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $container->register('monolog.handler.null_internal', 'Monolog\Handler\NullHandler'); foreach ($this->channelPass->getChannels() as $channel) { diff --git a/DependencyInjection/Compiler/LoggerChannelPass.php b/DependencyInjection/Compiler/LoggerChannelPass.php index b4c513c0..c5f965f7 100644 --- a/DependencyInjection/Compiler/LoggerChannelPass.php +++ b/DependencyInjection/Compiler/LoggerChannelPass.php @@ -30,7 +30,7 @@ class LoggerChannelPass implements CompilerPassInterface { protected $channels = ['app']; - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('monolog.logger')) { return; diff --git a/DependencyInjection/MonologExtension.php b/DependencyInjection/MonologExtension.php index 1d47a984..d1835668 100644 --- a/DependencyInjection/MonologExtension.php +++ b/DependencyInjection/MonologExtension.php @@ -55,7 +55,7 @@ class MonologExtension extends Extension * @param array $configs An array of configuration settings * @param ContainerBuilder $container A ContainerBuilder instance */ - 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); @@ -144,15 +144,13 @@ public function load(array $configs, ContainerBuilder $container) /** * Returns the base path for the XSD files. - * - * @return string The XSD base path */ - public function getXsdValidationBasePath() + public function getXsdValidationBasePath(): string { return __DIR__.'/../Resources/config/schema'; } - public function getNamespace() + public function getNamespace(): string { return 'http://symfony.com/schema/dic/monolog'; } diff --git a/MonologBundle.php b/MonologBundle.php index baae67f2..07d2b914 100644 --- a/MonologBundle.php +++ b/MonologBundle.php @@ -31,7 +31,7 @@ class MonologBundle extends Bundle /** * @return void */ - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); diff --git a/composer.json b/composer.json index 91b22061..ab621736 100644 --- a/composer.json +++ b/composer.json @@ -17,16 +17,16 @@ ], "require": { "php": ">=7.2.5", - "symfony/monolog-bridge": "^5.4 || ^6.0 || ^7.0", - "symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0", - "symfony/config": "^5.4 || ^6.0 || ^7.0", - "symfony/http-kernel": "^5.4 || ^6.0 || ^7.0", + "symfony/monolog-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/config": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/http-kernel": "^5.4 || ^6.0 || ^7.0 || ^8.0", "monolog/monolog": "^1.25.1 || ^2.0 || ^3.0" }, "require-dev": { - "symfony/yaml": "^5.4 || ^6.0 || ^7.0", - "symfony/console": "^5.4 || ^6.0 || ^7.0", - "symfony/phpunit-bridge": "^7.1" + "symfony/yaml": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/phpunit-bridge": "^7.1 || ^8.0" }, "autoload": { "psr-4": { "Symfony\\Bundle\\MonologBundle\\": "" },