aboutsummaryrefslogtreecommitdiff
path: root/app/Services
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2022-08-21 22:41:31 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-21 22:41:31 +0200
commit85991d1c5ca1b29503e11be65a33da9a7e0c154a (patch)
treeb1584e9e700d2f097e1dd09bd966b283a5386437 /app/Services
parent0ec3874620c03b03a5cb462d99d710bd802d06f9 (diff)
Use keyword "static" (#4436)
static closure
Diffstat (limited to 'app/Services')
-rw-r--r--app/Services/ImportService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index 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'] : ''));