Skip to content

Commit aad154b

Browse files
committed
minor #13783 List which values are true for %env(bool:xxx)% (SimonHeimberg)
This PR was merged into the 4.4 branch. Discussion ---------- 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. Commits ------- 80d986a List which values are true for %env(bool:xxx)%
2 parents 32f67ca + 80d986a commit aad154b

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)