Skip to content

Commit 1e895cf

Browse files
committed
Add typehint to array_filter
1 parent 5b73698 commit 1e895cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/OpenAPI/Processor/Request.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,14 @@ public function convertUploadedFilesToStrings(array $uploadedFiles): array
162162
}
163163

164164
/**
165-
* @param string[][] $headers
166-
*
167-
* @return string[][]
165+
* @param array<string, string|string[]> $headers
166+
* @return array<string, string|string[]>
168167
*/
169168
private function filterHeaders(array $headers): array
170169
{
171170
return array_filter(
172171
$headers,
173-
fn($k) => strtolower($k) !== 'cookie',
172+
fn(string $k) => strtolower($k) !== 'cookie',
174173
ARRAY_FILTER_USE_KEY
175174
);
176175
}

0 commit comments

Comments
 (0)