Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commit990b51b
committed
bug#40629 [DependencyInjection] Fix "url" env var processor behavior when the url has no path (fancyweb)
This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Fix "url" env var processor behavior when the url has no path| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Before:```yamlMY_URL_ENV_VAR=http://symfony.com%env(key:path:url:MY_URL_ENV_VAR)% --> false```After:```yamlMY_URL_ENV_VAR=http://symfony.com%env(key:path:url:MY_URL_ENV_VAR)% --> null```Returning `false` for the path prevents me from using the `default` env var processor that is triggered only for `''` and `null`.(`%env(default:my_fallback_param:key:path:url:MY_URL_ENV_VAR)%`)BTW, with PHP 8, it actually works because `substr(null, 1)` behavior changed (seehttps://3v4l.org/oHf6l).Commits-------2876cf9 [DependencyInjection] Fix "url" env var processor behavior when the url has no pathFile tree
2 files changed
+26
-2
lines changed- src/Symfony/Component/DependencyInjection
- Tests
2 files changed
+26
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
613 | 635 | | |
0 commit comments
Comments
(0)