Skip to content

Commit

Permalink
Explicit boolean value compare
Browse files Browse the repository at this point in the history
  • Loading branch information
remotemerge committed Dec 25, 2023
1 parent 35fcc5f commit 5041bfc
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 @@ -81,7 +81,7 @@ public function verify(string $referenceId, string $productId, float $amount): b
$response = curl_exec($ch);

// Check for errors
if (curl_errno($ch)) {
if (curl_errno($ch) !== 0) {
// Handle errors here
throw new Exception(curl_error($ch));
}
Expand Down

0 comments on commit 5041bfc

Please sign in to comment.