Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75e4f70

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

File tree

Expand file treeCollapse file tree

6 files changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+6
-6
lines changed

‎reference/forms/types/collection.rst

Copy file name to clipboardExpand all lines: reference/forms/types/collection.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: reference/forms/types/entity.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: reference/forms/types/options/attr.rst.inc
+1-1Lines 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

Copy file name to clipboardExpand all lines: reference/forms/types/options/button_attr.rst.inc
+1-1Lines 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

Copy file name to clipboardExpand all lines: reference/forms/types/options/constraints.rst.inc
+1-1Lines 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

Copy file name to clipboardExpand all lines: reference/forms/types/options/error_mapping.rst.inc
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.