Skip to content

Commit 0374314

Browse files
blue-eyesfabpot
authored andcommitted
[Validator] Added code-block to display in YAML code instead of PHP code.
1 parent d623000 commit 0374314

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guides/validator.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ by default. You can enable it in your ``config.yml``:
4949
5050
# hello/config/config.yml
5151
web.validation:
52-
annotations: true
52+
annotations: true
5353
5454
Now let's try to validate an object::
5555

@@ -60,7 +60,9 @@ Now let's try to validate an object::
6060
6161
print $validator->validate($author);
6262
63-
You should see the following output::
63+
You should see the following output:
64+
65+
.. code-block:: yaml
6466
6567
Author.firstName:
6668
This value is too short. It should have 4 characters or more

0 commit comments

Comments
 (0)