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

Skip to content

Commit 1384bf5

Browse files
committed
minor #14529 Use integer type instead of int & boolean instead of bool (ybenhssaien)
This PR was squashed before being merged into the 5.1 branch. Discussion ---------- Use integer type instead of int & boolean instead of bool Uses the same type hint `int` already used in the `optimizations` config # Update - [x] Replace `int` by `integer` - [x] Replace `bool` by `boolean` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 120290d Replace bool by boolean fc22075 Use integer typehint instead int 2c0cad0 Use int type instead integer
2 parents 4c493d8 + 120290d commit 1384bf5

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

reference/configuration/framework.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ outgoing network interface.
801801
buffer
802802
......
803803

804-
**type**: ``bool`` | ``Closure``
804+
**type**: ``boolean`` | ``Closure``
805805

806806
Buffering the response means that you can access its content multiple times
807807
without performing the request again. Buffering is enabled by default when the
@@ -2851,7 +2851,7 @@ Name of the workflow you want to create.
28512851
audit_trail
28522852
"""""""""""
28532853

2854-
**type**: ``bool``
2854+
**type**: ``boolean``
28552855

28562856
If set to ``true``, the :class:`Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener`
28572857
will be enabled.

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ no specific character is passed as argument to the ``number_format`` filter.
294294
optimizations
295295
~~~~~~~~~~~~~
296296

297-
**type**: ``int`` **default**: ``-1``
297+
**type**: ``integer`` **default**: ``-1``
298298

299299
Twig includes an extension called ``optimizer`` which is enabled by default in
300300
Symfony applications. This extension analyzes the templates to optimize them

reference/constraints/AtLeastOneOf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ has to be satisfied in order for the validation to succeed.
163163
includeInternalMessages
164164
~~~~~~~~~~~~~~~~~~~~~~~
165165

166-
**type**: ``bool`` **default**: ``true``
166+
**type**: ``boolean`` **default**: ``true``
167167

168168
If set to ``true``, the message that is shown if the validation fails,
169169
will include the list of messages for the internal constraints. See option

reference/constraints/Hostname.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Parameter Description
117117
``requireTld``
118118
~~~~~~~~~~~~~~
119119

120-
**type**: ``bool`` **default**: ``true``
120+
**type**: ``boolean`` **default**: ``true``
121121

122122
By default, hostnames are considered valid only when they are fully qualified
123123
and include their TLDs (top-level domain names). For instance, ``example.com``

reference/constraints/NotBlank.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Options
8585
allowNull
8686
~~~~~~~~~
8787

88-
**type**: ``bool`` **default**: ``false``
88+
**type**: ``boolean`` **default**: ``false``
8989

9090
If set to ``true``, ``null`` values are considered valid and won't trigger a
9191
constraint violation.

reference/constraints/Traverse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The ``groups`` option is not available for this constraint.
146146
``traverse``
147147
~~~~~~~~~~~~
148148

149-
**type**: ``bool`` **default**: ``true``
149+
**type**: ``boolean`` **default**: ``true``
150150

151151
Instances of ``\Traversable`` are traversed by default, use this option to
152152
disable validating:

reference/forms/types/color.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Field Options
4949
html5
5050
~~~~~
5151

52-
**type**: ``bool`` **default**: ``false``
52+
**type**: ``boolean`` **default**: ``false``
5353

5454
.. versionadded:: 5.1
5555

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

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

4-
**type**: ``bool`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
By default, the contents of the ``help`` option are escaped before rendering
77
them in the template. Set this option to ``true`` to not escape them, which is

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

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

4-
**type**: ``bool`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
.. versionadded:: 5.1
77

0 commit comments

Comments
 (0)