diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 605a6929bfd5ea3f22a0b216da30d3c05c7f21f0..ff463f690ff0aff49461e5459cd5c36dee45e886 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -11,7 +11,7 @@ <ini name="error_reporting" value="-1"/> <server name="APP_ENV" value="test" force="true"/> <server name="SHELL_VERBOSITY" value="-1"/> - <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/> + <server name="SYMFONY_DEPRECATIONS_HELPER" value='max[direct]=0&quiet[]=indirect'/> <server name="KERNEL_CLASS" value="Dbp\Relay\TemplateBundle\Tests\Kernel"/> </php> <testsuites> diff --git a/src/Command/TestCommand.php b/src/Command/TestCommand.php index aae2a4c19920275b03917ffafe7122f2052511b2..87f017269ea95db95f5b772542404a7bbe10d4be 100644 --- a/src/Command/TestCommand.php +++ b/src/Command/TestCommand.php @@ -24,7 +24,7 @@ class TestCommand extends Command $this->setDescription('Hey there!'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $argument = $input->getArgument('argument'); $output->writeln($argument); diff --git a/src/DataPersister/PlaceDataPersister.php b/src/DataPersister/PlaceDataPersister.php index d6ff8bce13023b1524101c97404d517d5b9f46f8..bec4060bdeaf343cbac30d2d9d05f5110212f573 100644 --- a/src/DataPersister/PlaceDataPersister.php +++ b/src/DataPersister/PlaceDataPersister.php @@ -23,7 +23,7 @@ class PlaceDataPersister extends AbstractController implements DataPersisterInte return $data instanceof Place; } - public function persist($data) + public function persist($data): void { // TODO } diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 5506ae25e47a309b48ae4c6eec41cb820be535c9..4e38e5aead809d980374a54d4fc7aa5fbb187fac 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -9,7 +9,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface; class Configuration implements ConfigurationInterface { - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('dbp_relay_template');