Skip to content

Commit 395f667

Browse files
committed
Update RouterUri.php
1 parent 950548e commit 395f667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webfiori/framework/router/RouterUri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function getLanguages() : array {
267267
public function getMiddleware() : array {
268268
if (count($this->assignedMiddlewareList) != count($this->sortedMiddleeareList)) {
269269
$compareFunc = function ($a, $b) {
270-
return $b->getPriority() - $a->getPriority();
270+
return $a->compare($b);
271271
};
272272
$this->sortedMiddleeareList = $this->assignedMiddlewareList;
273273

0 commit comments

Comments
 (0)