Skip to content

Commit 75b1ba9

Browse files
committed
fix(config): update lazy status using lexicon on hasKey()
1 parent b5092e5 commit 75b1ba9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/private/AppConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function searchKeys(string $app, string $prefix = '', bool $lazy = false)
163163
public function hasKey(string $app, string $key, ?bool $lazy = false): bool {
164164
$this->assertParams($app, $key);
165165
$this->loadConfig($app, $lazy ?? true);
166-
$this->matchAndApplyLexiconDefinition($app, $key);
166+
$this->matchAndApplyLexiconDefinition($app, $key, $lazy);
167167

168168
$hasLazy = isset($this->lazyCache[$app][$key]);
169169
$hasFast = isset($this->fastCache[$app][$key]);

lib/private/Config/UserConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getKeys(string $userId, string $app): array {
158158
public function hasKey(string $userId, string $app, string $key, ?bool $lazy = false): bool {
159159
$this->assertParams($userId, $app, $key);
160160
$this->loadConfig($userId, $lazy);
161-
$this->matchAndApplyLexiconDefinition($userId, $app, $key);
161+
$this->matchAndApplyLexiconDefinition($userId, $app, $key, $lazy);
162162

163163
if ($lazy === null) {
164164
$appCache = $this->getValues($userId, $app);

0 commit comments

Comments
 (0)