Skip to content

Commit 9435a53

Browse files
committed
use Boolean instead of boolean
1 parent 1bd33ca commit 9435a53

21 files changed

+37
-35
lines changed

components/config/definition.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Component. Configuration values are usually expected to show some kind of
1313
hierarchy. Also, values should be of a certain type, be restricted in number
1414
or be one of a given set of values. For example, the following configuration
1515
(in YAML) shows a clear hierarchy and some validation rules that should be
16-
applied to it (like: "the value for ``auto_connect`` must be a boolean value"):
16+
applied to it (like: "the value for ``auto_connect`` must be a Boolean value"):
1717

1818
.. code-block:: yaml
1919
@@ -87,7 +87,7 @@ reflect the real structure of the configuration values::
8787
->end()
8888
;
8989

90-
The root node itself is an array node, and has children, like the boolean
90+
The root node itself is an array node, and has children, like the Boolean
9191
node ``auto_connect`` and the scalar node ``default_connection``. In general:
9292
after defining a node, a call to ``end()`` takes you one step up in the hierarchy.
9393

@@ -99,6 +99,8 @@ node definition. Node types are available for:
9999

100100
* scalar (generic type that includes booleans, strings, integers, floats and ``null``)
101101
* boolean
102+
* scalar
103+
* boolean
102104
* integer (new in 2.2)
103105
* float (new in 2.2)
104106
* enum (new in 2.1) (similar to scalar, but it only allows a finite set of values)

components/console/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Unlike arguments, options are not ordered (meaning you can specify them in any
290290
order) and are specified with two dashes (e.g. ``--yell`` - you can also
291291
declare a one-letter shortcut that you can call with a single dash like
292292
``-y``). Options are *always* optional, and can be setup to accept a value
293-
(e.g. ``--dir=src``) or simply as a boolean flag without a value (e.g.
293+
(e.g. ``--dir=src``) or simply as a Boolean flag without a value (e.g.
294294
``--yell``).
295295

296296
.. tip::

components/event_dispatcher/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ be called.
474474

475475
It is possible to detect if an event was stopped by using the
476476
:method:`Symfony\\Component\\EventDispatcher\\Event::isPropagationStopped` method
477-
which returns a boolean value::
477+
which returns a Boolean value::
478478

479479
$dispatcher->dispatch('foo.event', $event);
480480
if ($event->isPropagationStopped()) {

components/filesystem.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ copy
8484
:method:`Symfony\\Component\\Filesystem\\Filesystem::copy` is used to copy
8585
files. If the target already exists, the file is copied only if the source
8686
modification date is later than the target. This behavior can be overridden by
87-
the third boolean argument::
87+
the third Boolean argument::
8888

8989
// works only if image-ICC has been modified after image.jpg
9090
$fs->copy('image-ICC.jpg', 'image.jpg');
@@ -115,7 +115,7 @@ chown
115115
~~~~~
116116

117117
:method:`Symfony\\Component\\Filesystem\\Filesystem::chown` is used to change
118-
the owner of a file. The third argument is a boolean recursive option::
118+
the owner of a file. The third argument is a Boolean recursive option::
119119

120120
// set the owner of the lolcat video to www-data
121121
$fs->chown('lolcat.mp4', 'www-data');
@@ -131,7 +131,7 @@ chgrp
131131
~~~~~
132132

133133
:method:`Symfony\\Component\\Filesystem\\Filesystem::chgrp` is used to change
134-
the group of a file. The third argument is a boolean recursive option::
134+
the group of a file. The third argument is a Boolean recursive option::
135135

136136
// set the group of the lolcat video to nginx
137137
$fs->chgrp('lolcat.mp4', 'nginx');
@@ -147,7 +147,7 @@ chmod
147147
~~~~~
148148

149149
:method:`Symfony\\Component\\Filesystem\\Filesystem::chmod` is used to change
150-
the mode of a file. The fourth argument is a boolean recursive option::
150+
the mode of a file. The fourth argument is a Boolean recursive option::
151151

152152
// set the mode of the video to 0600
153153
$fs->chmod('video.ogg', 0600);
@@ -188,7 +188,7 @@ symlink
188188

189189
:method:`Symfony\\Component\\Filesystem\\Filesystem::symlink` creates a
190190
symbolic link from the target to the destination. If the filesystem does not
191-
support symbolic links, a third boolean argument is available::
191+
support symbolic links, a third Boolean argument is available::
192192

193193
// create a symbolic link
194194
$fs->symlink('/path/to/source', '/path/to/destination');
@@ -260,7 +260,7 @@ thrown.
260260

261261
.. note::
262262

263-
Prior to version 2.1, ``mkdir`` returned a boolean and did not throw
263+
Prior to version 2.1, ``mkdir`` returned a Boolean and did not throw
264264
exceptions. As of 2.1, a
265265
:class:`Symfony\\Component\\Filesystem\\Exception\\IOException` is thrown
266266
if a directory creation fails.

components/yaml/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Types Support
6969
~~~~~~~~~~~~~
7070

7171
It supports most of the YAML built-in types like dates, integers, octals,
72-
booleans, and much more...
72+
Booleans, and much more...
7373

7474
Full Merge Key Support
7575
~~~~~~~~~~~~~~~~~~~~~~

components/yaml/yaml_format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chapter only describes the minimum set of features needed to use YAML as a
1212
configuration file format.
1313

1414
YAML is a simple language that describes data. As PHP, it has a syntax for
15-
simple types like strings, booleans, floats, or integers. But unlike PHP, it
15+
simple types like strings, Booleans, floats, or integers. But unlike PHP, it
1616
makes a difference between arrays (sequences) and hashes (mappings).
1717

1818
Scalars

reference/configuration/framework.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ http_method_override
8787
.. versionadded:: 2.3
8888
The ``http_method_override`` option was introduced in Symfony 2.3.
8989

90-
**type**: ``Boolean`` **default**: ``true``
90+
**type**: ``boolean`` **default**: ``true``
9191

9292
This determines whether the ``_method`` request parameter is used as the intended
9393
HTTP method on POST requests. If enabled, the
@@ -176,7 +176,7 @@ is set, then the ``ide`` option will be ignored.
176176
test
177177
~~~~
178178

179-
**type**: ``Boolean``
179+
**type**: ``boolean``
180180

181181
If this configuration parameter is present (and not ``false``), then the
182182
services related to testing your application (e.g. ``test.client``) are loaded.
@@ -321,14 +321,14 @@ to the cookie specification.
321321
cookie_secure
322322
.............
323323

324-
**type**: ``Boolean`` **default**: ``false``
324+
**type**: ``boolean`` **default**: ``false``
325325

326326
This determines whether cookies should only be sent over secure connections.
327327

328328
cookie_httponly
329329
...............
330330

331-
**type**: ``Boolean`` **default**: ``false``
331+
**type**: ``boolean`` **default**: ``false``
332332

333333
This determines whether cookies should only be accessible through the HTTP protocol.
334334
This means that the cookie won't be accessible by scripting languages, such
@@ -641,7 +641,7 @@ to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInt
641641
enable_annotations
642642
..................
643643

644-
**type**: ``Boolean`` **default**: ``false``
644+
**type**: ``boolean`` **default**: ``false``
645645

646646
If this option is enabled, validation constraints can be defined using annotations.
647647

reference/constraints/Isbn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ Available Options
106106
isbn10
107107
~~~~~~
108108

109-
**type**: ``boolean``
109+
**type**: ``boolean`` **default**: ``false``
110110

111111
If this required option is set to ``true`` the constraint will check if the
112112
code is a valid ISBN-10 code.
113113

114114
isbn13
115115
~~~~~~
116116

117-
**type**: ``boolean``
117+
**type**: ``boolean`` **default**: ``false``
118118

119119
If this required option is set to ``true`` the constraint will check if the
120120
code is a valid ISBN-13 code.

reference/constraints/Issn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ The message shown if the given value is not a valid ISSN.
9090
caseSensitive
9191
~~~~~~~~~~~~~
9292

93-
**type**: ``Boolean`` default: ``false``
93+
**type**: ``boolean`` default: ``false``
9494

9595
The validator will allow ISSN values to end with a lower case 'x' by default.
9696
When switching this to ``true``, the validator requires an upper case 'X'.
9797

9898
requireHyphen
9999
~~~~~~~~~~~~~
100100

101-
**type**: ``Boolean`` default: ``false``
101+
**type**: ``boolean`` default: ``false``
102102

103103
The validator will allow non hyphenated ISSN values by default. When switching
104104
this to ``true``, the validator requires a hyphenated ISSN value.

reference/forms/types/choice.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ is the item value and the array value is the item's label::
9696
.. tip::
9797

9898
When the values to choose from are not integers or strings (but e.g. floats
99-
or booleans), you should use the `choice_list`_ option instead. With this
99+
or Booleans), you should use the `choice_list`_ option instead. With this
100100
option you are able to keep the original data format which is important
101101
to ensure that the user input is validated properly and useless database
102102
updates caused by a data type mismatch are avoided.
@@ -136,7 +136,7 @@ Overridden Options
136136
compound
137137
~~~~~~~~
138138

139-
**type**: ``boolean`` **default**: same value as ``expanded`` option
139+
**type**: ``Boolean`` **default**: same value as ``expanded`` option
140140

141141
This option specifies if a form is compound. The value is by default
142142
overridden by the value of the ``expanded`` option.
@@ -156,7 +156,7 @@ The actual default value of this option depends on other field options:
156156
error_bubbling
157157
~~~~~~~~~~~~~~
158158

159-
**type**: ``boolean`` **default**: ``false``
159+
**type**: ``Boolean`` **default**: ``false``
160160

161161
Set that error on this field must be attached to the field instead of
162162
the parent field (the form in most cases).

0 commit comments

Comments
 (0)