Skip to content

Commit 9f2433d

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: 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 602f8de + 5320e0b commit 9f2433d

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
@@ -44,7 +44,7 @@ public function getFunctions(): array
4444

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

5050
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)