Skip to content

Commit 80d986a

Browse files
List which values are true for %env(bool:xxx)%
This is the behaviour since [4.2](symfony/symfony@ce53261). Before all strings except `''`, `'false'`, `'off'` and `'no'` were true as well.
1 parent 7973085 commit 80d986a

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
@@ -96,7 +96,7 @@ Symfony provides the following env var processors:
9696
]);
9797
9898
``env(bool:FOO)``
99-
Casts ``FOO`` to a bool:
99+
Casts ``FOO`` to a bool (true values are `'true'`, `'on'`, `'yes'` and all numers unequal to `0`, everything else is false):
100100

101101
.. configuration-block::
102102

0 commit comments

Comments
 (0)