Skip to content

Commit 7c7a8e7

Browse files
committed
Fixing code block name
1 parent 41db041 commit 7c7a8e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

book/forms.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,8 @@ this is a great approach.
15861586
``constraints`` option, which accepts a single constraint or an array
15871587
of them.
15881588

1589-
::
1589+
.. code-block:: php
1590+
15901591
use Symfony\Component\Validator\Constraints\MinLength;
15911592
use Symfony\Component\Validator\Constraints\NotBlank;
15921593
@@ -1608,7 +1609,8 @@ this is a great approach.
16081609
``Default`` group when creating the form, or set the correct group on
16091610
the constraint you are adding.
16101611

1611-
::
1612+
.. code-block:: php
1613+
16121614
new NotBlank(array('groups' => array('create', 'update'))
16131615
16141616

0 commit comments

Comments
 (0)