Skip to content

Commit 93ae6e9

Browse files
Add null comparison for $apiKey in constructor
1 parent b1ef1b0 commit 93ae6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Geolocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $apiKey = null, bool $https = false)
2727
{
2828
$this->https = $https;
2929

30-
if ($api_key) {
30+
if ($apiKey !== null) {
3131
$this->apiKey = $apiKey;
3232
$this->https = true;
3333
}

0 commit comments

Comments
 (0)