Skip to content

Commit 5320e0b

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: fix Twig 3.12 compatibility [Translation] Review Serbian translations Fix typos [DependencyInjection] Fix error message typo in YamlFileLoader Fix typo in exception message langage to language
2 parents a17a299 + e93c836 commit 5320e0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ExpressionLanguageProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getFunctions(): array
4545

4646
new ExpressionFunction('env', fn ($arg) => sprintf('$container->getEnv(%s)', $arg), function (array $variables, $value) {
4747
if (!$this->getEnv) {
48-
throw new LogicException('You need to pass a getEnv closure to the expression langage provider to use the "env" function.');
48+
throw new LogicException('You need to pass a getEnv closure to the expression language provider to use the "env" function.');
4949
}
5050

5151
return ($this->getEnv)($value);

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ private function parseDefinition(string $id, array|string|null $service, string
562562
}
563563

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

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

0 commit comments

Comments
 (0)