From 8863069333e9bfee4a859c4ad62eb7c0be350fe3 Mon Sep 17 00:00:00 2001 From: Dennis de Best Date: Tue, 4 Jul 2023 00:44:28 +0200 Subject: [PATCH] Add return types for DependencyInjection functions to remove deprectations messages (#306) --- src/DependencyInjection/Compiler/LocatorRegistrationPass.php | 2 +- src/DependencyInjection/DataTablesExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DependencyInjection/Compiler/LocatorRegistrationPass.php b/src/DependencyInjection/Compiler/LocatorRegistrationPass.php index 5b10ad39..7b328808 100644 --- a/src/DependencyInjection/Compiler/LocatorRegistrationPass.php +++ b/src/DependencyInjection/Compiler/LocatorRegistrationPass.php @@ -33,7 +33,7 @@ class LocatorRegistrationPass implements CompilerPassInterface /** * {@inheritdoc} */ - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $container->getDefinition(Instantiator::class) ->setArguments([[ diff --git a/src/DependencyInjection/DataTablesExtension.php b/src/DependencyInjection/DataTablesExtension.php index 93f80368..c826905f 100644 --- a/src/DependencyInjection/DataTablesExtension.php +++ b/src/DependencyInjection/DataTablesExtension.php @@ -32,7 +32,7 @@ class DataTablesExtension extends Extension /** * {@inheritdoc} */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs);