From 8c946c5c1d1692d5378cb722060969730cebc96d Mon Sep 17 00:00:00 2001 From: Evan Shaw Date: Tue, 27 Aug 2024 12:54:30 +1200 Subject: [PATCH] [DependencyInjection] Fix error message typo in YamlFileLoader --- Loader/YamlFileLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loader/YamlFileLoader.php b/Loader/YamlFileLoader.php index 05e383396..aee4a9c96 100644 --- a/Loader/YamlFileLoader.php +++ b/Loader/YamlFileLoader.php @@ -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'])) {