Skip to content

Commit

Permalink
[DI] Removes number of elements information in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaedl committed May 3, 2019
1 parent 15e9eec commit f2ee786
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -339,7 +339,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
if ($argument instanceof Reference) {
$argumentsInformation[] = sprintf('Service(%s)', (string) $argument);
} elseif ($argument instanceof IteratorArgument) {
$argumentsInformation[] = sprintf('Iterator (%d element(s))', \count($argument->getValues()));
$argumentsInformation[] = empty($argument->getValues()) ? 'Iterator' : sprintf('Iterator (%d element(s))', \count($argument->getValues()));
} elseif ($argument instanceof Definition) {
$argumentsInformation[] = 'Inlined Service';
} else {
Expand Down

0 comments on commit f2ee786

Please sign in to comment.