Skip to content

Commit a87c55f

Browse files
committed
Tried to fix the XML example
1 parent 89c87a1 commit a87c55f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

reference/constraints/Expression.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ values
263263
.. versionadded:: 4.1
264264
The ``values`` option was introduced in Symfony 4.1.
265265

266-
The values of the custom variables used in the expression.
266+
The values of the custom variables used in the expression. Values can be of any
267+
type (numeric, boolean, strings, null, etc.)
267268

268269
.. configuration-block::
269270

@@ -311,10 +312,11 @@ The values of the custom variables used in the expression.
311312
<property name="metric">
312313
<constraint name="Expression">
313314
<option name="expression">
314-
value + error_margin < threshold
315+
value + error_margin &lt; threshold
315316
</option>
316317
<option name="values">
317-
... ?
318+
<value key="error_margin">0.25</value>
319+
<value key="threshold">1.5</value>
318320
</option>
319321
</constraint>
320322
</property>

0 commit comments

Comments
 (0)