Skip to content

Commit e9866ef

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

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
@@ -1297,8 +1297,10 @@ private function setTypedValue(
12971297
crypto:$this->crypto,
12981298
);
12991299
if ($lazy) {
1300+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
13001301
$this->lazyCache[$userId][$app][$key] = $entry;
13011302
} else {
1303+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
13021304
$this->fastCache[$userId][$app][$key] = $entry;
13031305
}
13041306

@@ -1856,8 +1858,10 @@ private function loadConfig(string $userId, ?bool $lazy = false): void {
18561858
crypto:$this->crypto,
18571859
);
18581860
if ($this->migrationCompleted && (($row['lazy'] ?? ($lazy ?? 0) ? 1 : 0) === 1)) {
1861+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
18591862
$this->lazyCache[$userId][$row['appid']][$row['configkey']] = $valueDetail;
18601863
} else {
1864+
/** @psalm-suppress InvalidArgument https://github.com/vimeo/psalm/issues/6350 */
18611865
$this->fastCache[$userId][$row['appid']][$row['configkey']] = $valueDetail;
18621866
}
18631867
}

0 commit comments

Comments
 (0)