Skip to content

Commit 973a6e4

Browse files
committed
Fix WebClient::getHeader() return type if header not found
1 parent c3430ac commit 973a6e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Clients/WebClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function getHeaders(): array
303303
*/
304304
public function getHeader(string $name): ?string
305305
{
306-
$value = [];
306+
$value = null;
307307

308308
foreach($this->options[CURLOPT_HTTPHEADER] as $header)
309309
{

0 commit comments

Comments
 (0)