Skip to content

Commit

Permalink
ensure string type with mbstring func overloading enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 6, 2023
1 parent 6765a43 commit a9f0705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/HeaderUtils.php
Expand Up @@ -256,7 +256,7 @@ public static function parseQuery(string $query, bool $ignoreBrackets = false, s
private static function groupParts(array $matches, string $separators, bool $first = true): array
{
$separator = $separators[0];
$separators = substr($separators, 1);
$separators = substr($separators, 1) ?: '';
$i = 0;

if ('' === $separators && !$first) {
Expand Down

0 comments on commit a9f0705

Please sign in to comment.