mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-14 20:35:29 +00:00
cs: Enable risky rule static_lambda.
This commit is contained in:
@@ -88,7 +88,7 @@ class SearchProvider
|
||||
public function getByOrder()
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->searchServices, function (SearchInterface $a, SearchInterface $b) {
|
||||
uasort($this->searchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
if ($a->getOrder() == $b->getOrder()) {
|
||||
return 0;
|
||||
}
|
||||
@@ -121,7 +121,7 @@ class SearchProvider
|
||||
public function getHasAdvancedFormSearchServices()
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->hasAdvancedFormSearchServices, function (SearchInterface $a, SearchInterface $b) {
|
||||
uasort($this->hasAdvancedFormSearchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
if ($a->getOrder() == $b->getOrder()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user