Skip to content

Commit ffe40c6

Browse files
minor symfony#58084 [ExpressionLanguage] Fix typo in exception message (JoshuaBehrens)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- [ExpressionLanguage] Fix typo in exception message | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | --- | License | MIT I just noticed this typo. I am an unsure how "public API" an exception message is in regards of the backwards compatibility. Therefore I am unsure whether it is "breaking" and should be part of a feature-ish release or needs 3 PRs for the major versions. I do not see a case for typos in https://symfony.com/bc which is not bad just difficult to follow for this minor changes. Commits ------- 034c593 Fix typo in exception message langage to language
2 parents 536d851 + 034c593 commit ffe40c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/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);

0 commit comments

Comments
 (0)