Skip to content

Commit c921035

Browse files
authored
Updated to reference root namespace \Exception
If you ever got a curl error you would actually end up with an exception from trying to throw the exception: `Class 'overint\Exception' not found`
1 parent 95f7689 commit c921035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MailgunValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function queryMailgun($email)
4343
curl_close($curl);
4444

4545
if ($err) {
46-
throw new Exception('Curl Error: ' . $err);
46+
throw new \Exception('Curl Error: ' . $err);
4747
} else {
4848
return json_decode($response);
4949
}

0 commit comments

Comments
 (0)