Skip to content

Commit

Permalink
[DI] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 14, 2020
1 parent acb1060 commit b3333e5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -763,7 +763,7 @@ private function resolveServices($value, string $file, bool $isParameter = false

if (\is_array($argument) && isset($argument['tag']) && $argument['tag']) {
if ($diff = array_diff(array_keys($argument), ['tag', 'index_by', 'default_index_method', 'default_priority_method'])) {
throw new InvalidArgumentException(sprintf('"!%s" tag contains unsupported key "%s"; supported ones are "tag", "index_by", "default_index_method", and "default_priority_method".', $value->getTag(), implode('"", "', $diff)));
throw new InvalidArgumentException(sprintf('"!%s" tag contains unsupported key "%s"; supported ones are "tag", "index_by", "default_index_method", and "default_priority_method".', $value->getTag(), implode('", "', $diff)));
}

$argument = new TaggedIteratorArgument($argument['tag'], $argument['index_by'] ?? null, $argument['default_index_method'] ?? null, $forLocator, $argument['default_priority_method'] ?? null);
Expand Down

0 comments on commit b3333e5

Please sign in to comment.