8000 [DependencyInjection] Fix dumping non-shared factories which have a c… · symfony/symfony@68768f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68768f7

Browse files
committed
[DependencyInjection] Fix dumping non-shared factories which have a configured methodCall with TaggedIteratorArgument - fix tests
1 parent 59a4558 commit 68768f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ public function testDumpAsFilesWithFactoriesInlinedWithTaggedIterator()
293293
->register('foo', FooClass::class)
294294
->addMethodCall('setOtherInstances', [new TaggedIteratorArgument('foo')])
295295
->setShared(false)
296-
->setPublic(true)
297-
;
296+
->setPublic(true);
298297

299298
$container
300299
->register('Bar', 'Bar')

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_inlined_factories_with_tagged_iterrator.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
9595
return;
9696
}
9797

98-
require dirname(__DIR__, 5).'/vendor/autoload.php';
98+
require dirname(__DIR__, %d).'/vendor/autoload.php';
9999
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
100100

101101
$classes = [];

0 commit comments

Comments
 (0)
0