From f126cf1304660ef98c5e47691bd9551c81b11af0 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 18 Dec 2020 07:23:32 +0100 Subject: [PATCH] Remove void return type from test methods --- .../Compiler/AddSecurityVotersPassTest.php | 4 ++-- .../Compiler/ExceptionListenerPassTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php index ed435f7fa9..65ab44566e 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php @@ -71,7 +71,7 @@ class AddSecurityVotersPassTest extends TestCase $this->assertCount(4, $refs); } - public function testThatVotersAreTraceableInDebugMode(): void + public function testThatVotersAreTraceableInDebugMode() { $container = new ContainerBuilder(); @@ -103,7 +103,7 @@ class AddSecurityVotersPassTest extends TestCase $this->assertCount(2, $voters, 'Incorrect count of voters'); } - public function testThatVotersAreNotTraceableWithoutDebugMode(): void + public function testThatVotersAreNotTraceableWithoutDebugMode() { $container = new ContainerBuilder(); $container->setParameter('kernel.debug', false); diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExceptionListenerPassTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExceptionListenerPassTest.php index 673da74f4d..015bf0690f 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExceptionListenerPassTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExceptionListenerPassTest.php @@ -19,7 +19,7 @@ use Twig\Environment; class ExceptionListenerPassTest extends TestCase { - public function testExitsWhenTwigIsNotAvailable(): void + public function testExitsWhenTwigIsNotAvailable() { $builder = new ContainerBuilder(); $builder->register('exception_listener', ExceptionListener::class);