Skip to content

Commit fd52cd3

Browse files
Christian Flothmannxabbuh
authored andcommitted
use boolean instead of Boolean
1 parent f8db4b0 commit fd52cd3

36 files changed

+66
-64
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ it into a format that's suitable for being rendered in an HTML form.
198198
``task`` property via the ``getTask()`` and ``setTask()`` methods on the
199199
``Task`` class. Unless a property is public, it *must* have a "getter" and
200200
"setter" method so that the Form component can get and put data onto the
201-
property. For a Boolean property, you can use an "isser" or "hasser" method
201+
property. For a boolean property, you can use an "isser" or "hasser" method
202202
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
203203
``getPublished()`` or ``getReminder()``).
204204

components/config/definition.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

cookbook/configuration/using_parameters_in_dic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ be injected with this parameter via the extension as follows::
105105

106106
public function __construct($debug)
107107
{
108-
$this->debug = (Boolean) $debug;
108+
$this->debug = (bool) $debug;
109109
}
110110

111111
public function getConfigTreeBuilder()

cookbook/doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Start by creating a simple class which represents the "registration"::
194194

195195
public function setTermsAccepted($termsAccepted)
196196
{
197-
$this->termsAccepted = (Boolean) $termsAccepted;
197+
$this->termsAccepted = (bool) $termsAccepted;
198198
}
199199
}
200200

cookbook/security/voters_data_permission.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ edit a particular object. Here's an example implementation::
121121
switch($attribute) {
122122
case self::VIEW:
123123
// the data object could have for example a method isPrivate()
124-
// which checks the Boolean attribute $private
124+
// which checks the boolean attribute $private
125125
if (!$post->isPrivate()) {
126126
return VoterInterface::ACCESS_GRANTED;
127127
}

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/configuration/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ a separate firewall just for ``check_path`` URL).
277277
use_forward
278278
...........
279279

280-
**type**: ``Boolean`` **default**: ``false``
280+
**type**: ``boolean`` **default**: ``false``
281281

282282
If you'd like the user to be forwarded to the login form instead of being
283283
redirected, set this option to ``true``.
@@ -303,7 +303,7 @@ will look for a POST parameter with this name.
303303
post_only
304304
.........
305305

306-
**type**: ``Boolean`` **default**: ``true``
306+
**type**: ``boolean`` **default**: ``true``
307307

308308
By default, you must submit your login form to the ``check_path`` URL as
309309
a POST request. By setting this option to ``false``, you can send a GET request
@@ -312,10 +312,10 @@ to the ``check_path`` URL.
312312
Redirecting after Login
313313
~~~~~~~~~~~~~~~~~~~~~~~
314314

315-
* ``always_use_default_target_path`` (type: ``Boolean``, default: ``false``)
315+
* ``always_use_default_target_path`` (type: ``boolean``, default: ``false``)
316316
* ``default_target_path`` (type: ``string``, default: ``/``)
317317
* ``target_path_parameter`` (type: ``string``, default: ``_target_path``)
318-
* ``use_referer`` (type: ``Boolean``, default: ``false``)
318+
* ``use_referer`` (type: ``boolean``, default: ``false``)
319319

320320
.. _reference-security-pbkdf2:
321321

reference/configuration/swiftmailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ For details, see :ref:`the cookbook entry. <sending-to-a-specified-address-but-w
169169
disable_delivery
170170
~~~~~~~~~~~~~~~~
171171

172-
**type**: ``Boolean`` **default**: ``false``
172+
**type**: ``boolean`` **default**: ``false``
173173

174174
If true, the ``transport`` will automatically be set to ``null``, and no
175175
emails will actually be delivered.
176176

177177
logging
178178
~~~~~~~
179179

180-
**type**: ``Boolean`` **default**: ``%kernel.debug%``
180+
**type**: ``boolean`` **default**: ``%kernel.debug%``
181181

182182
If true, Symfony's data collector will be activated for Swift Mailer and the
183183
information will be available in the profiler.

reference/constraints/Choice.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ for details on its usage.
281281
multiple
282282
~~~~~~~~
283283

284-
**type**: ``Boolean`` **default**: ``false``
284+
**type**: ``boolean`` **default**: ``false``
285285

286286
If this option is true, the input value is expected to be an array instead
287287
of a single, scalar value. The constraint will check that each value of
@@ -344,7 +344,7 @@ too many options per the `max`_ option.
344344
strict
345345
~~~~~~
346346

347-
**type**: ``Boolean`` **default**: ``false``
347+
**type**: ``boolean`` **default**: ``false``
348348

349349
If true, the validator will also check the type of the input value. Specifically,
350350
this value is passed to as the third argument to the PHP :phpfunction:`in_array` method

reference/constraints/Collection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ be executed against that element of the collection.
298298
allowExtraFields
299299
~~~~~~~~~~~~~~~~
300300

301-
**type**: ``Boolean`` **default**: false
301+
**type**: ``boolean`` **default**: false
302302

303303
If this option is set to ``false`` and the underlying collection contains
304304
one or more elements that are not included in the `fields`_ option, a validation
@@ -307,14 +307,14 @@ error will be returned. If set to ``true``, extra fields are ok.
307307
extraFieldsMessage
308308
~~~~~~~~~~~~~~~~~~
309309

310-
**type**: ``Boolean`` **default**: ``The fields {{ fields }} were not expected.``
310+
**type**: ``boolean`` **default**: ``The fields {{ fields }} were not expected.``
311311

312312
The message shown if `allowExtraFields`_ is false and an extra field is detected.
313313

314314
allowMissingFields
315315
~~~~~~~~~~~~~~~~~~
316316

317-
**type**: ``Boolean`` **default**: false
317+
**type**: ``boolean`` **default**: false
318318

319319
If this option is set to ``false`` and one or more fields from the `fields`_
320320
option are not present in the underlying collection, a validation error will
@@ -324,7 +324,7 @@ option are not present in the underlying collection.
324324
missingFieldsMessage
325325
~~~~~~~~~~~~~~~~~~~~
326326

327-
**type**: ``Boolean`` **default**: ``The fields {{ fields }} are missing.``
327+
**type**: ``boolean`` **default**: ``The fields {{ fields }} are missing.``
328328

329329
The message shown if `allowMissingFields`_ is false and one or more fields
330330
are missing from the underlying collection.

0 commit comments

Comments
 (0)