mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Fix a usort comparison function returning a boolean instead of an integer
PHP 8 shows deprecation warnings about this, see #25806 Signed-off-by: Richard de Boer <git@tubul.net>
This commit is contained in:
parent
7e9d459fea
commit
088118f548
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class PublicTemplateResponse extends TemplateResponse {
|
|||
$this->headerActions[] = $action;
|
||||
}
|
||||
usort($this->headerActions, function (IMenuAction $a, IMenuAction $b) {
|
||||
return $a->getPriority() > $b->getPriority();
|
||||
return $a->getPriority() <=> $b->getPriority();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue