Skip to content

Commit

Permalink
Merge pull request #635 from cmgmyr/main
Browse files Browse the repository at this point in the history
Return false if success variable not defined
  • Loading branch information
freekmurze committed Feb 2, 2022
2 parents a6b96a6 + a8548e9 commit 28f6bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function performAvailabilityCheck(): bool
} finally {
curl_close($curlHandle);

return $success;
return $success ?? false;
}
}

Expand Down

0 comments on commit 28f6bd8

Please sign in to comment.