Skip to content

Commit 694cd4c

Browse files
committed
Minor tweaks
1 parent 18630b7 commit 694cd4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/expression_language.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if the expression is not valid::
107107
$expressionLanguage->lint('1 + 2', []); // doesn't throw anything
108108

109109
$expressionLanguage->lint('1 + a', []);
110-
// Throw SyntaxError Exception
110+
// throws a SyntaxError exception:
111111
// "Variable "a" is not valid around position 5 for expression `1 + a`."
112112

113113
The behavior of these methods can be configured with some flags defined in the
@@ -125,7 +125,7 @@ This is how you can use these flags::
125125

126126
$expressionLanguage = new ExpressionLanguage();
127127

128-
// Does not throw a SyntaxError because the unknown variables and functions are ignored
128+
// does not throw a SyntaxError because the unknown variables and functions are ignored
129129
$expressionLanguage->lint('unknown_var + unknown_function()', [], Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS);
130130

131131
.. versionadded:: 7.1

0 commit comments

Comments
 (0)