Skip to content

Commit f885a5b

Browse files
marcingpartikus
authored andcommitted
ServiceLocatorTest: fixes "creation of dynamic property is deprecated"
1 parent 987e5bd commit f885a5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/UnitTest/ServiceLocator/ServiceLocatorTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace DI\Test\UnitTest;
66

7+
use DI\Container;
78
use DI\ContainerBuilder;
89
use DI\ServiceLocator;
910
use DI\Test\UnitTest\Fixtures\Singleton;
@@ -16,6 +17,8 @@
1617
*/
1718
class ServiceLocatorTest extends TestCase
1819
{
20+
private ?Container $container;
21+
1922
public function setUp(): void
2023
{
2124
$containerBuilder = new ContainerBuilder();

0 commit comments

Comments
 (0)