From 9d1e2e038a63771609a95de74b4c0343d52b4a28 Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Tue, 17 Dec 2019 09:28:14 +0100 Subject: [PATCH] Update database.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, I just add return type hint like the parent class : https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/TestCase.php Cheers 😉 --- testing/database.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/database.rst b/testing/database.rst index ed587f3427e..9be53774e8b 100644 --- a/testing/database.rst +++ b/testing/database.rst @@ -221,7 +221,7 @@ so, get the entity manager via the service container as follows:: */ private $entityManager; - protected function setUp() + protected function setUp(): void { $kernel = self::bootKernel(); @@ -240,7 +240,7 @@ so, get the entity manager via the service container as follows:: $this->assertSame(14.50, $product->getPrice()); } - protected function tearDown() + protected function tearDown(): void { parent::tearDown();