generated from rawilk/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Laravel Settings
v3.4.1
Laravel Version
v12.24.0
Bug description
When we get a setting passing another get in default parameter, the context of the first one is reset:
Settings::context(new Context([]))
->get(
'page_title',
Settings::context(new Context([]))->get('app_name', 'My App')
);
Because of this piece of code in the get
method (I think):
if ($this->resetContext) {
$this->context();
}
$this->temporarilyDisableCache = false;
$this->resetContext = true;
The page_title
key is generated without context.
For example when using ReadableKeyGenerator
(but that's the same with MD5):
"page-title"
instead of
"page-title:c:::O:31:"Rawilk\Settings\Support\Context":1:{s:12:"\x00*\x00arguments";a:0:{}}"
Steps to reproduce
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working