Skip to content

Commit 97bd68c

Browse files
committed
chore: Suppress psalm false-positives
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 3077080 commit 97bd68c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎lib/private/Config/UserConfig.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,10 @@ private function setTypedValue(
12891289
crypto:$this->crypto,
12901290
);
12911291
if ($lazy) {
1292+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
12921293
$this->lazyCache[$userId][$app][$key] = $entry;
12931294
} else {
1295+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
12941296
$this->fastCache[$userId][$app][$key] = $entry;
12951297
}
12961298

@@ -1848,8 +1850,10 @@ private function loadConfig(string $userId, ?bool $lazy = false): void {
18481850
crypto:$this->crypto,
18491851
);
18501852
if ($this->migrationCompleted && (($row['lazy'] ?? ($lazy ?? 0) ? 1 : 0) === 1)) {
1853+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
18511854
$this->lazyCache[$userId][$row['appid']][$row['configkey']] = $valueDetail;
18521855
} else {
1856+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
18531857
$this->fastCache[$userId][$row['appid']][$row['configkey']] = $valueDetail;
18541858
}
18551859
}

0 commit comments

Comments
 (0)