Skip to content

Commit 5d8b789

Browse files
sbacelicweaverryan
authored andcommitted
Fix annotation example in Regex validation constraint
1 parent ed24e14 commit 5d8b789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ specify the html5 compatible pattern in the ``htmlPattern`` option:
214214
class Author
215215
{
216216
/**
217-
* @Assert\Regex({
217+
* @Assert\Regex(
218218
* pattern = "/^[a-z]+$/i",
219219
* htmlPattern = "^[a-zA-Z]+$"
220-
* })
220+
* )
221221
*/
222222
protected $name;
223223
}

0 commit comments

Comments
 (0)