Skip to content

Commit f53bf0a

Browse files
committed
Fix tests using deprecated methods
1 parent 4abe5da commit f53bf0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FunctionalTest/ContainerInteractionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function phpdi_should_get_entries_from_symfony()
3737
$phpdiContainer->set(
3838
'foo',
3939
\DI\object(Class1::class)
40-
->constructor(\DI\link('class2'))
40+
->constructor(\DI\get('class2'))
4141
);
4242

4343
$class1 = $container->get('foo');
@@ -69,7 +69,7 @@ public function phpdi_aliases_can_reference_symfony_entries()
6969
/** @var Container $phpdiContainer */
7070
$phpdiContainer = $container->getFallbackContainer();
7171

72-
$phpdiContainer->set('foo', \DI\link('class2'));
72+
$phpdiContainer->set('foo', \DI\get('class2'));
7373

7474
$class2 = $container->get('foo');
7575

0 commit comments

Comments
 (0)