File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Bundle/FrameworkBundle/Console/Descriptor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,9 +343,9 @@ private function getContainerEnvVars(ContainerBuilder $container): array
343
343
protected function getServiceEdges (ContainerBuilder $ builder , string $ serviceId ): array
344
344
{
345
345
try {
346
- return array_map (function (ServiceReferenceGraphEdge $ edge ) {
346
+ return array_values ( array_unique ( array_map (function (ServiceReferenceGraphEdge $ edge ) {
347
347
return $ edge ->getSourceNode ()->getId ();
348
- }, $ builder ->getCompiler ()->getServiceReferenceGraph ()->getNode ($ serviceId )->getInEdges ());
348
+ }, $ builder ->getCompiler ()->getServiceReferenceGraph ()->getNode ($ serviceId )->getInEdges ()))) ;
349
349
} catch (InvalidArgumentException $ exception ) {
350
350
return [];
351
351
}
You can’t perform that action at this time.
0 commit comments