Skip to content

Commit 692659e

Browse files
committed
minor #5742 incorrect: severity is an array key here and not a constant (lbayerl)
This PR was submitted for the 2.6 branch but it was merged into the 2.7 branch instead (closes #5742). Discussion ---------- incorrect: severity is an array key here and not a constant see http://stackoverflow.com/questions/31701947/how-to-use-symfony-2-6-validations-payload-with-annotation/32826742#comment53602501_32826742 for details Commits ------- 22a1082 incorrect: severity is an array key here and not a constant
2 parents 5ca9456 + 22a1082 commit 692659e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/validation/severity.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ Use the ``payload`` option to configure the error level for each constraint:
3838
class User
3939
{
4040
/**
41-
* @Assert\NotBlank(payload = {severity = "error"})
41+
* @Assert\NotBlank(payload = {"severity" = "error"})
4242
*/
4343
protected $username;
4444
4545
/**
46-
* @Assert\NotBlank(payload = {severity = "error"})
46+
* @Assert\NotBlank(payload = {"severity" = "error"})
4747
*/
4848
protected $password;
4949
5050
/**
51-
* @Assert\Iban(payload = {severity = "warning"})
51+
* @Assert\Iban(payload = {"severity" = "warning"})
5252
*/
5353
protected $bankAccountNumber;
5454
}

0 commit comments

Comments
 (0)