Skip to content

Commit d9bb246

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 595790a commit d9bb246

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/private/AppConfig.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,12 @@ private function setTypedValue(
801801
$type |= self::VALUE_SENSITIVE;
802802
}
803803

804-
if ($lazy !== $this->isLazy($app, $key)) {
805-
$refreshCache = true;
804+
try {
805+
if ($lazy !== $this->isLazy($app, $key)) {
806+
$refreshCache = true;
807+
}
808+
} catch (AppConfigUnknownKeyException) {
809+
// pass
806810
}
807811

808812
$update = $this->connection->getQueryBuilder();

0 commit comments

Comments
 (0)