Skip to content

Commit

Permalink
Update src/functions/marshal_headers_from_sapi.php
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksei Khudiakov <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney and Xerkus authored May 4, 2023
1 parent 21c70c7 commit 5535fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/marshal_headers_from_sapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function marshalHeadersFromSapi(array $server): array
}

// Filter out integer keys.
// These can occor if the translated header name is a string integer.
// These can occur if the translated header name is a string integer.
// PHP will cast those to integers when assigned to an array.
// This filters them out.
return array_filter($headers, fn(string|int $key): bool => is_string($key), ARRAY_FILTER_USE_KEY);
Expand Down

0 comments on commit 5535fe5

Please sign in to comment.