Skip to content

Commit 72b253b

Browse files
minor #22825 [DI] Remove dead service_container checks (ro0NL)
This PR was merged into the 3.3 branch. Discussion ---------- [DI] Remove dead service_container checks | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Since #21627 Commits ------- 9a8ea93 [DI] Remove dead service_container checks
2 parents d1f9d90 + 201451f commit 72b253b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dumper/GraphvizDumper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ private function findNodes()
192192
}
193193

194194
if (!$container->hasDefinition($id)) {
195-
$class = get_class('service_container' === $id ? $this->container : $container->get($id));
196-
$nodes[$id] = array('class' => str_replace('\\', '\\\\', $class), 'attributes' => $this->options['node.instance']);
195+
$nodes[$id] = array('class' => str_replace('\\', '\\\\', get_class($container->get($id))), 'attributes' => $this->options['node.instance']);
197196
}
198197
}
199198

0 commit comments

Comments
 (0)