Skip to content

Commit 4fbe133

Browse files
committed
ensure string type with mbstring func overloading enabled
1 parent 671769f commit 4fbe133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HeaderUtils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public static function parseQuery(string $query, bool $ignoreBrackets = false, s
256256
private static function groupParts(array $matches, string $separators, bool $first = true): array
257257
{
258258
$separator = $separators[0];
259-
$separators = substr($separators, 1);
259+
$separators = substr($separators, 1) ?: '';
260260
$i = 0;
261261

262262
if ('' === $separators && !$first) {

0 commit comments

Comments
 (0)