Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75e4f70

Browse files
committed
minor symfony#5365 Finish symfony#4967: Code style standardization on form type options (mimol91)
This PR was merged into the 2.3 branch. Discussion ---------- Finish symfony#4967: Code style standardization on form type options Closes symfony#4967 Commits ------- b389f03 code style standardization on form type options
2 parents 96ae20f + b389f03 commit 75e4f70

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ well as :ref:`cookbook-form-collections-new-prototype`.
327327
prototype_name
328328
~~~~~~~~~~~~~~
329329

330-
**type**: ``String`` **default**: ``__name__``
330+
**type**: ``string`` **default**: ``__name__``
331331

332332
If you have several collections in your form, or worse, nested collections
333333
you may want to change the placeholder so that unrelated placeholders are

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ directly.
183183
choices
184184
~~~~~~~
185185

186-
**type**: array | ``\Traversable`` **default**: ``null``
186+
**type**: ``array`` | ``\Traversable`` **default**: ``null``
187187

188188
Instead of allowing the `class`_ and `query_builder`_ options to fetch the
189189
entities to include for you, you can pass the ``choices`` option directly.

reference/forms/types/options/attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
attr
22
~~~~
33

4-
**type**: array **default**: Empty array
4+
**type**: ``array`` **default**: ``array()``
55

66
If you want to add extra attributes to an HTML field representation
77
you can use the ``attr`` option. It's an associative array with HTML attributes

reference/forms/types/options/button_attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
attr
22
~~~~
33

4-
**type**: array **default**: Empty array
4+
**type**: ``array`` **default**: ``array()``
55

66
If you want to add extra attributes to the HTML representation of the button,
77
you can use ``attr`` option. It's an associative array with HTML attribute

reference/forms/types/options/constraints.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
constraints
22
~~~~~~~~~~~
33

4-
**type**: array or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
4+
**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
55

66
Allows you to attach one or more validation constraints to a specific field.
77
For more information, see :ref:`Adding Validation<form-option-constraints>`.

reference/forms/types/options/error_mapping.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error_mapping
44
.. versionadded:: 2.1
55
The ``error_mapping`` option was introduced in Symfony 2.1.
66

7-
**type**: ``array`` **default**: ``empty``
7+
**type**: ``array`` **default**: ``array()``
88

99
This option allows you to modify the target of a validation error.
1010

0 commit comments

Comments
 (0)