From 652792367da9f97e19e11b2c1a71957d4d603975 Mon Sep 17 00:00:00 2001 From: Marcin Gil Date: Mon, 29 Jan 2024 20:03:01 +0100 Subject: [PATCH 1/2] ServiceLocatorTest: fixes "creation of dynamic property is deprecated" --- tests/UnitTest/ServiceLocator/ServiceLocatorTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php b/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php index 7cbb905b..270bad13 100644 --- a/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php +++ b/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php @@ -4,6 +4,7 @@ namespace DI\Test\UnitTest; +use DI\Container; use DI\ContainerBuilder; use DI\ServiceLocator; use DI\Test\UnitTest\Fixtures\Singleton; @@ -16,6 +17,8 @@ */ class ServiceLocatorTest extends TestCase { + private ?Container $container; + public function setUp(): void { $containerBuilder = new ContainerBuilder(); From 8048cecfa948190bfad52d4385bc39c3ccae4bde Mon Sep 17 00:00:00 2001 From: Marcin Gil Date: Tue, 30 Jan 2024 15:06:41 +0100 Subject: [PATCH 2/2] fixed indent: replaced tab with 4 spaces --- tests/UnitTest/ServiceLocator/ServiceLocatorTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php b/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php index 7cbb905b..b6ff6669 100644 --- a/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php +++ b/tests/UnitTest/ServiceLocator/ServiceLocatorTest.php @@ -4,6 +4,7 @@ namespace DI\Test\UnitTest; +use DI\Container; use DI\ContainerBuilder; use DI\ServiceLocator; use DI\Test\UnitTest\Fixtures\Singleton; @@ -16,6 +17,8 @@ */ class ServiceLocatorTest extends TestCase { + private ?Container $container; + public function setUp(): void { $containerBuilder = new ContainerBuilder();