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
While working on the Symfony Demo app (see symfony/demo#572) we stumbled upon the issue reported in #22561. In that PR they question this behavior, but here I'm talking strictly about the error message itself:
Symfony\Component\DependencyInjection\Exception\EnvParameterException:
Incompatible use of dynamic environment variables "DATABASE_URL" found in parameters.
I can't understand the error message .. and it gives me no clue about how to fix this problem. Can we please improve it? Thanks!
The text was updated successfully, but these errors were encountered:
…nvironment variables detected (voronkovich)
This PR was squashed before being merged into the 3.2 branch (closes#22976).
Discussion
----------
[DependencyInjection] Use more clear message when unused environment variables detected
| Q | A
| ------------- | ---
| Branch? |3.2
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #22955
| License | MIT
Old error message:
```
Incompatible use of dynamic environment variables "DATABASE_URL", "MAILER_URL" found in parameters.
```
New error message:
```
Environment variables "DATABASE_URL", "MAILER_URL" are never used. Please, check your container's configuration.
```
Commits
-------
6dbdb1b [DependencyInjection] Use more clear message when unused environment variables detected
While working on the Symfony Demo app (see symfony/demo#572) we stumbled upon the issue reported in #22561. In that PR they question this behavior, but here I'm talking strictly about the error message itself:
I can't understand the error message .. and it gives me no clue about how to fix this problem. Can we please improve it? Thanks!
The text was updated successfully, but these errors were encountered: