Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection] Fix "url" env var processor behavior when the url has no path#40629

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Nyholm merged 1 commit intosymfony:4.4fromfancyweb:di-fix-url-env-var-processor
Mar 31, 2021

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Before:

MY_URL_ENV_VAR=http://symfony.com%env(key:path:url:MY_URL_ENV_VAR)% --> false

After:

MY_URL_ENV_VAR=http://symfony.com%env(key:path:url:MY_URL_ENV_VAR)% --> null

Returningfalse for the path prevents me from using thedefault env var processor that is triggered only for'' andnull.
(%env(default:my_fallback_param:key:path:url:MY_URL_ENV_VAR)%)

BTW, with PHP 8, it actually works becausesubstr(null, 1) behavior changed (seehttps://3v4l.org/oHf6l).

@fancywebfancyweb changed the base branch from5.x to4.4March 29, 2021 13:51
@Nyholm
Copy link
Member

Great, thank you Thomas

@NyholmNyholm merged commit990b51b intosymfony:4.4Mar 31, 2021
@fancywebfancyweb deleted the di-fix-url-env-var-processor branchApril 1, 2021 07:11
This was referencedMay 1, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

+1 more reviewer

@ro0NLro0NLro0NL approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@fancyweb@Nyholm@stof@OskarStark@ro0NL

[8]ページ先頭

©2009-2025 Movatter.jp