mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -90,9 +90,7 @@ class SearchProvider
|
||||
public function getByOrder()
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->searchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
return $a->getOrder() <=> $b->getOrder();
|
||||
});
|
||||
uasort($this->searchServices, static fn(SearchInterface $a, SearchInterface $b) => $a->getOrder() <=> $b->getOrder());
|
||||
|
||||
return $this->searchServices;
|
||||
}
|
||||
@@ -119,9 +117,7 @@ class SearchProvider
|
||||
public function getHasAdvancedFormSearchServices()
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->hasAdvancedFormSearchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
return $a->getOrder() <=> $b->getOrder();
|
||||
});
|
||||
uasort($this->hasAdvancedFormSearchServices, static fn(SearchInterface $a, SearchInterface $b) => $a->getOrder() <=> $b->getOrder());
|
||||
|
||||
return $this->hasAdvancedFormSearchServices;
|
||||
}
|
||||
|
Reference in New Issue
Block a user