Skip to content

Commit

Permalink
[DependencyInjection] Fix error message typo in YamlFileLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
edsrzf committed Aug 27, 2024
1 parent 6084b55 commit 8c946c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loader/YamlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private function parseDefinition(string $id, $service, string $file, array $defa
}

if (\is_string($k)) {
throw new InvalidArgumentException(sprintf('Invalid method call for service "%s", did you forgot a leading dash before "%s: ..." in "%s"?', $id, $k, $file));
throw new InvalidArgumentException(sprintf('Invalid method call for service "%s", did you forget a leading dash before "%s: ..." in "%s"?', $id, $k, $file));
}

if (isset($call['method']) && \is_string($call['method'])) {
Expand Down

0 comments on commit 8c946c5

Please sign in to comment.