Skip to content

Commit fd0ab3b

Browse files
fix: ensure auth methods return non-nullable arrays
1 parent 9a72241 commit fd0ab3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ public function __construct(?string $apiKey = null, ?string $baseUrl = null)
6464
/** @return array<string, string> */
6565
protected function authHeaders(): array
6666
{
67-
return ['x-api-key' => $this->apiKey];
67+
return $this->apiKey ? ['x-api-key' => $this->apiKey] : [];
6868
}
6969
}

0 commit comments

Comments
 (0)