diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-06-03 17:11:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 17:11:20 +0200 |
commit | 88fe7348ed11cf81ed17e33fba98671f790f7a32 (patch) | |
tree | 939efe1e8c30df56e5572f6bc42a1ce630486066 /lib | |
parent | 4f3456296ba7ba6c17089ae68fd97c116c12dca5 (diff) | |
parent | 0d202e201b3c63376cab7980ae476e25c1003c28 (diff) | |
download | nextcloud-server-88fe7348ed11cf81ed17e33fba98671f790f7a32.tar.gz nextcloud-server-88fe7348ed11cf81ed17e33fba98671f790f7a32.zip |
Merge pull request #45455 from nextcloud/fix/psalm/navigation-entries
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/NavigationManager.php | 2 | ||||
-rw-r--r-- | lib/public/INavigationManager.php | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 05a3a9c85fe..5d71c83e77a 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -95,7 +95,7 @@ class NavigationManager implements INavigationManager { // This is the default app that will always be shown first $entry['default'] = ($entry['app'] ?? false) === $this->defaultApp; // Set order from user defined app order - $entry['order'] = $this->customAppOrder[$id]['order'] ?? $entry['order'] ?? 100; + $entry['order'] = (int)($this->customAppOrder[$id]['order'] ?? $entry['order'] ?? 100); } $this->entries[$id] = $entry; diff --git a/lib/public/INavigationManager.php b/lib/public/INavigationManager.php index 5440230e44c..eaef1cb35ec 100644 --- a/lib/public/INavigationManager.php +++ b/lib/public/INavigationManager.php @@ -11,12 +11,10 @@ namespace OCP; /** - * @psalm-type NavigationEntry = array{id: string, order: int, href: string, name: string, app?: string, icon?: string, classes?: string, type?: string} - */ - -/** * Manages the ownCloud navigation * @since 6.0.0 + * + * @psalm-type NavigationEntry = array{id: string, order: int, href: string, name: string, app?: string, icon?: string, classes?: string, type?: string} */ interface INavigationManager { /** |