New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP warning when using %env(default::FOO)% #32853
Comments
Hello, I will try to fix this issue :) |
nicolas-grekas
added a commit
that referenced
this issue
Aug 3, 2019
This PR was submitted for the 4.3 branch but it was squashed and merged into the 3.4 branch instead (closes #32870). Discussion ---------- | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Tests pass? | yes | Fixed tickets | #32853 | License | MIT Commits ------- 7cf9ed6 #32853 Check if $this->parameters is array.
nicolas-grekas
added a commit
that referenced
this issue
Aug 3, 2019
* 3.4: #32853 Check if $this->parameters is array. [Validator] Improve Fa translations
nicolas-grekas
added a commit
that referenced
this issue
Aug 3, 2019
* 4.3: #32853 Check if $this->parameters is array. [Validator] Improve Fa translations
nicolas-grekas
added a commit
that referenced
this issue
Aug 3, 2019
* 4.4: #32853 Check if $this->parameters is array. [Mailer] added debug info on HTTP transport exceptions [Validator] Improve Fa translations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.3.3
Description
When using the
%env(default::FOO)%
environment variable processor to get the value orNULL
, the app fails with a PHP warning:The bug only happens when the env var is not defined, and only the first time you load a page; after that, it works and the parameter is correctly set to
null
when the env var is not set.Running
cache:clear
does trigger the bug every time, though.How to reproduce
symfony new bug && cd bug
config/services.yaml
and add the following:bin/console cache:clear
The text was updated successfully, but these errors were encountered: