Skip to content

Commit 5ad9b26

Browse files
authored
Force cast headers key to string
1 parent 62f9784 commit 5ad9b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PSR7Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected function configureServer(Request $request): array
134134

135135
$server['HTTP_USER_AGENT'] = '';
136136
foreach ($request->headers as $key => $value) {
137-
$key = \strtoupper(\str_replace('-', '_', $key));
137+
$key = \strtoupper(\str_replace('-', '_', (string)$key));
138138
if (\in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH'])) {
139139
$server[$key] = \implode(', ', $value);
140140
} else {

0 commit comments

Comments
 (0)