aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/http/HttpAcceptParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/libs/http/HttpAcceptParser.php')
-rw-r--r--includes/libs/http/HttpAcceptParser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/libs/http/HttpAcceptParser.php b/includes/libs/http/HttpAcceptParser.php
index 26611b6edd00..625237c6d39e 100644
--- a/includes/libs/http/HttpAcceptParser.php
+++ b/includes/libs/http/HttpAcceptParser.php
@@ -63,7 +63,7 @@ class HttpAcceptParser {
}
// Sort list. First by q values, then by order
- usort( $ret, function ( $a, $b ) {
+ usort( $ret, static function ( $a, $b ) {
if ( $b['q'] > $a['q'] ) {
return 1;
} elseif ( $b['q'] === $a['q'] ) {
@@ -100,7 +100,7 @@ class HttpAcceptParser {
$accepts = $this->parseAccept( $rawHeader );
// Create a list like "en" => 0.8
- return array_reduce( $accepts, function ( $prev, $next ) {
+ return array_reduce( $accepts, static function ( $prev, $next ) {
$type = "{$next['type']}/{$next['subtype']}";
$prev[$type] = $next['q'];
return $prev;