From 80d986a3b2ccf66c3307330f7f26c006e41594ab Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Tue, 9 Jun 2020 08:40:48 +0200 Subject: [PATCH] List which values are true for %env(bool:xxx)% This is the behaviour since [4.2](https://github.com/symfony/symfony/commit/ce532613239fbb0dc7fbd870e96560f4df456fc4). Before all strings except `''`, `'false'`, `'off'` and `'no'` were true as well. --- configuration/env_var_processors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/env_var_processors.rst b/configuration/env_var_processors.rst index ceca80957b8..633901dce4c 100644 --- a/configuration/env_var_processors.rst +++ b/configuration/env_var_processors.rst @@ -96,7 +96,7 @@ Symfony provides the following env var processors: ]); ``env(bool:FOO)`` - Casts ``FOO`` to a bool: + Casts ``FOO`` to a bool (true values are `'true'`, `'on'`, `'yes'` and all numers unequal to `0`, everything else is false): .. configuration-block::