-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] replace "nullable" env processor by improving the "default" one #30504
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
Conversation
22823d2
to
d6a1871
Compare
But it was my 1st PR! 😥 (French contributors will remind "mais t'avais dit qu'on ferait des knacki!") More seriously, that's a good idea 🙂 thank you @nicolas-grekas ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. I like this one much more :)
d6a1871
to
c50aad2
Compare
@jderusse @bpolaszek would you mind sending a doc PR please? (see #10722) |
done in symfony/symfony-docs#11127 |
Thank you @nicolas-grekas. |
… "default" one (nicolas-grekas) This PR was merged into the 4.3-dev branch. Discussion ---------- [DI] replace "nullable" env processor by improving the "default" one | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Neither `nullable` nor `default` are released yet. I propose to replace the `nullable` processor (see #29767) with an improved `default` one (from #28976). `%env(default::FOO)%` now defaults to `null` when the env var doesn't exist or compares to false". ping @jderusse @bpolaszek Commits ------- c50aad2 [DI] replace "nullable" env processor by improving the "default" one
…sse) This PR was merged into the master branch. Discussion ---------- Document Default env processor with null fallback Document the fallback to `null` PR: symfony/symfony#30504 Commits ------- 309bd58 Document Default env processor with null fallback
Neither
nullable
nordefault
are released yet.I propose to replace the
nullable
processor (see #29767) with an improveddefault
one (from #28976).%env(default::FOO)%
now defaults tonull
when the env var doesn't exist or compares to false".ping @jderusse @bpolaszek