From 294cdd32b7d9c1ae5fff6ad3e9660f005783cc84 Mon Sep 17 00:00:00 2001 From: Marcin Gil Date: Mon, 29 Jan 2024 20:03:01 +0100 Subject: [PATCH] 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();