Skip to content

Commit 3930221

Browse files
committed
fix: psalm errors on FilteredNavigationManager
Signed-off-by: Pascal Prugna <pascal@plumia.net>
1 parent 0e9d812 commit 3930221

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/FilteredNavigationManager.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FilteredNavigationManager extends NavigationManager {
1515

1616
public function __construct(
1717
private IUser $user,
18-
private INavigationManager $navigationManager,
18+
private INavigationManager|NavigationManager $navigationManager,
1919
private AppWhitelist $whitelist,
2020
) {
2121
}
@@ -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
}

0 commit comments

Comments
 (0)