Skip to content

Commit 8e3a0f4

Browse files
committed
minor #19573 [Config] be more specific about bool env var processor (javaDeveloperKid)
This PR was submitted for the 7.0 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Config] be more specific about bool env var processor Previous wording was not accurate enough for me because only 0 and 0.0 as integer and float respectively was presented. Alternative change could be: > and all numbers except `0`, `0.0`, `'0'` and `'0.0'` Let me know if the latter fits better for you. Commits ------- 20e562e be more specific about bool env var processor
2 parents 49a5922 + 20e562e commit 8e3a0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/env_var_processors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Symfony provides the following env var processors:
105105
106106
``env(bool:FOO)``
107107
Casts ``FOO`` to a bool (``true`` values are ``'true'``, ``'on'``, ``'yes'``
108-
and all numbers except ``0`` and ``0.0``; everything else is ``false``):
108+
and all numbers (also of a string type) except ``0`` and ``0.0``; everything else is ``false``):
109109

110110
.. configuration-block::
111111

0 commit comments

Comments
 (0)