8000 [HttpKernel] fix merge · marphi/symfony@dc5be00 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc5be00

Browse files
[HttpKernel] fix merge
1 parent f5da9f3 commit dc5be00

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ class WebProfilerExtensionTest extends TestCase
3333

3434
public static function assertSaneContainer(Container $container)
3535
{
36+
$removedIds = $container->getRemovedIds();
3637
$errors = [];
3738
foreach ($container->getServiceIds() as $id) {
39+
if (isset($removedIds[$id])) {
40+
continue;
41+
}
3842
try {
3943
$container->get($id);
4044
} catch (\Exception $e) {

src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function testAutowireAttribute()
467467
$container = new ContainerBuilder();
468468
$resolver = $container->register('argument_resolver.service', 'stdClass')->addArgument([]);
469469

470-
$container->register('some.id', \stdClass::class);
470+
$container->register('some.id', \stdClass::class)->setPublic(true);
471471
$container->setParameter('some.parameter', 'foo');
472472

473473
$container->register('foo', WithAutowireAttribute::class)

0 commit comments

Comments
 (0)
0