8000 Minor tweak · symfony/symfony-docs@add92fa · GitHub
[go: up one dir, main page]

Skip to content

Commit add92fa

Browse files
committed
Minor tweak
1 parent 5f9efce commit add92fa
8000

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/expression_language.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ other hand, returns a boolean indicating if the expression is valid or not::
110110

111111
var_dump($expressionLanguage->lint('1 + 2')); // displays true
112112

113-
The call to these methods can be configured through flags. The available flags
114-
are available in the :class:`Symfony\\Component\\ExpressionLanguage\\Parser` class
115-
and are the following:
113+
The behavior of these methods can be configured with some flags defined in the
114+
:class:`Symfony\\Component\\ExpressionLanguage\\Parser` class:
116115

117116
* ``IGNORE_UNKNOWN_VARIABLES``: don't throw an exception if a variable is not
118117
defined in the expression;
@@ -126,7 +125,7 @@ This is how you can use these flags::
126125

127126
$expressionLanguage = new ExpressionLanguage();
128127

129-
// this return true because the unknown variables and functions are ignored
128+
// this returns true because the unknown variables and functions are ignored
130129
var_dump($expressionLanguage->lint('unknown_var + unknown_function()', Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS));
131130

132131
.. versionadded:: 7.1

0 commit comments

Comments
 (0)
0