You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #50530 [DependencyInjection] Fix support for false boolean env vars (Okhoshi)
This PR was merged into the 6.3 branch.
Discussion
----------
[DependencyInjection] Fix support for `false` boolean env vars
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
After upgrading `symfony/dependency-injection` package to version 6.3, some of our env vars couldn't be found anymore.
For some scripts, we are providing an adhoc default value to env vars by setting `$_SERVER` directly. However, since version 6.3 of the DependencyInjection component, setting an env var to `false` (the boolean value, like in the snippet below) doesn't work anymore, and Symfony reports that the variable cannot be found.
```php
$_SERVER['FOO'] = false;
```
It seems to be a side effect of the changes made in #48705.
Commits
-------
5101d18 [DependencyInjection] Fix support for `false` boolean env vars
0 commit comments