Should Collection::get with a default value return that default value if the key exists but is empty? #39618
Unanswered
digitaltoad
asked this question in
Ideas
Replies: 1 comment
-
ive seen people argue this both ways tbh, a simple solution to force it is to do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would have expected to receive the given default value even if the key exists but is null. Instead when the key exists but the value is null, null is returned ignoring the default value.
Beta Was this translation helpful? Give feedback.
All reactions