Skip to content

Commit

Permalink
PHP8 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cesurapp committed Feb 27, 2021
1 parent b7cec1e commit 9cc8b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Builder/ItemProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function recursiveProcess(ItemInterface $menu, $options): bool

// Sort Item
usort($childs, static function ($a, $b) {
return $a->getOrder() > $b->getOrder();
return $a->getOrder() > $b->getOrder() ? 1 : ($a->getOrder() === $b->getOrder() ? 0 : -1);
});

// Set Childs
Expand Down

0 comments on commit 9cc8b38

Please sign in to comment.