Skip to content

Commit 29459db

Browse files
pulsarf0xicewind1991
authored andcommitted
fix: psalm errors on FilteredNavigationManager
Signed-off-by: Pascal Prugna <pascal@plumia.net>
1 parent 64eac5b commit 29459db

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/FilteredNavigationManager.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,23 @@ public function setUnreadCounter(string $id, int $unreadCounter): void {
5050
$this->navigationManager->setUnreadCounter($id, $unreadCounter);
5151
}
5252

53+
/**
54+
* @psalm-suppress MethodSignatureMismatch
55+
*/
5356
public function get(string $id): ?array {
5457
return $this->navigationManager->get($id);
5558
}
5659

60+
/**
61+
* @psalm-suppress MethodSignatureMismatch
62+
*/
5763
public function getDefaultEntryIdForUser(?IUser $user = null, bool $withFallbacks = true): string {
5864
return $this->navigationManager->getDefaultEntryIdForUser($user, $withFallbacks);
5965
}
6066

67+
/**
68+
* @psalm-suppress MethodSignatureMismatch
69+
*/
6170
public function getDefaultEntryIds(bool $withFallbacks = true): array {
6271
return $this->navigationManager->getDefaultEntryIds($withFallbacks);
6372
}

lib/Storage/DirMask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function isUpdatable($path): bool {
5656
}
5757
}
5858

59-
public function isCreatable($path): bool {
59+
public function isCreatable(string $path): bool {
6060
if ($this->checkPath($path)) {
6161
return parent::isCreatable($path);
6262
} else {

0 commit comments

Comments
 (0)