mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -38,11 +38,7 @@ class MenuCompilerPass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
usort($services, static function ($a, $b) {
|
||||
if ($a['priority'] === $b['priority']) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ($a['priority'] < $b['priority']) ? -1 : 1;
|
||||
return $a['priority'] <=> $b['priority'];
|
||||
});
|
||||
|
||||
foreach ($services as $service) {
|
||||
|
Reference in New Issue
Block a user