Signed-off-by: provokateurin <kate@provokateurin.de>
*
* @psalm-type CoreNavigationEntry = array{
* id: string,
- * order: int|string,
+ * order: int,
* href: string,
* icon: string,
* type: string,
"type": "string"
},
"order": {
- "oneOf": [
- {
- "type": "integer",
- "format": "int64"
- },
- {
- "type": "string"
- }
- ]
+ "type": "integer",
+ "format": "int64"
},
"href": {
"type": "string"
// 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;