diff --git a/framework/web/Request.php b/framework/web/Request.php index 851e2c83e3..21b5c38fb1 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -955,8 +955,7 @@ class Request extends \yii\base\Request $n = preg_match_all('/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/', $header, $matches, PREG_SET_ORDER); for ($i = 0; $i < $n; ++$i) { if (!empty($matches[$i][1])) { - $accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, - $i]; + $accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, $i]; } } usort($accepts, function ($a, $b) {