diff --git a/src/Request.php b/src/Request.php index cb760d6..ab8ad81 100644 --- a/src/Request.php +++ b/src/Request.php @@ -862,7 +862,7 @@ final protected function getQualityHeader(string $serverIndex, string $name): ar $headerSplit = preg_split('/\s*;\s*/', trim($part), -1, PREG_SPLIT_NO_EMPTY); foreach ($headerSplit as $headerPart) { - if (strpos($headerPart, '=') !== false) { + if (str_contains($headerPart, '=')) { $split = explode('=', $headerPart, 2); if ($split[0] === 'q') { $headerParts['quality'] = (float)$split[1];