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
minor #15611 [DependencyInjection] Improve url env var processor with type cast (noniagriconomie)
This PR was merged into the 4.4 branch.
Discussion
----------
[DependencyInjection] Improve url env var processor with type cast
Hi
I've tried on my symfony app v4.4, the `env(url:FOO)` env processor reading the doc at https://symfony.com/doc/4.4/configuration/env_var_processors.html
---
Without the changes proposed in this PR, I got:
- with definition like this in an `app.yaml` file
- `service.port: '%env(key:port:url:SERVICE_DSN)%'`
- the error
- `Invalid type for path "service.port". Expected one of "bool", "int", "float", "string", but got one of "bool", "int", "float", "string", "array".`
but it works only like this:
- `service.port: '%env(int:key:port:url:SERVICE_DSN)%'`
- same with `string:` for example a `key:user` or a `key:pass` fields from the url processor
---
Thus I am proposing this PR to correct the usage of this processor
If I am doing something wrong/incorrect, please answer what/why and feel free to close this PR!
Thank you :)
--------
Symfony 4.4.29
PHP 7.4.22
Commits
-------
b396b02 Improve url env var processor with type cast
0 commit comments