A free, self-hostable news aggregator…
Use keyword "static" (#4436)
Luc SANCHEZ85991d1c5ca1
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.phpindex 780dcbd07..2e70d4b81 100644--- a/app/Services/ImportService.php+++ b/app/Services/ImportService.php@@ -70,7 +70,7 @@ class FreshRSS_Import_Service {$limits = FreshRSS_Context::$system_conf->limits;//Sort with categories first- usort($opml_elements, function ($a, $b) {+ usort($opml_elements, static function ($a, $b) {return strcmp((isset($a['xmlUrl']) ? 'Z' : 'A') . (isset($a['text']) ? $a['text'] : ''),(isset($b['xmlUrl']) ? 'Z' : 'A') . (isset($b['text']) ? $b['text'] : ''));