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
Explanation:
If I have never called Setting::set('my.setting', true); and wanna retrieve value with default like this: Setting::get('my.setting', false);, that will return me not false as expected, but null.
Issue goes away if I stop using dot.notation for key name and default value works as a charm. Examples: Setting::get('my_setting', false); - gives me false as default if there is no mysetting Setting::get('my.setting', false); - gives me null as default if there is no mysetting, but hey WTF?
The text was updated successfully, but these errors were encountered:
Explanation:
If I have never called
Setting::set('my.setting', true);
and wanna retrieve value with default like this:Setting::get('my.setting', false);
, that will return me notfalse
as expected, butnull
.Issue goes away if I stop using dot.notation for key name and default value works as a charm.
Examples:
Setting::get('my_setting', false);
- gives mefalse
as default if there is nomysetting
Setting::get('my.setting', false);
- gives menull
as default if there is nomysetting
, but hey WTF?The text was updated successfully, but these errors were encountered: