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
f23d057ad9
commit
a0d265b0b1
|
@ -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 New Issue