Skip to content

Documented the "values" option of the Expression constraint #9428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor tweak
  • Loading branch information
javiereguiluz committed Mar 18, 2018
commit 0aa0ce304554642fe93f11f048cfbb5d8938c065
2 changes: 1 addition & 1 deletion reference/constraints/Expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ type (numeric, boolean, strings, null, etc.)
/**
* @Assert\Expression(
* "value + error_margin < threshold",
* values = { "error_margin": 0.25, threshold: 1.5 }
* values = { "error_margin": 0.25, "threshold": 1.5 }
* )
*/
private $metric;
Expand Down