Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit b98728d

Browse files
authored
Merge pull request #24 from wallyhall/master
Fix for RuntimeException namespace resolution
2 parents d301ed8 + e1e5f5f commit b98728d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sendinblue/Mailin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ private function do_request($resource, $method, $input)
4848
curl_setopt($ch, CURLOPT_POSTFIELDS, $input);
4949
$data = curl_exec($ch);
5050
if (curl_errno($ch)) {
51-
throw new RuntimeException('cURL error: ' . curl_error($ch));
51+
throw new \RuntimeException('cURL error: ' . curl_error($ch));
5252
}
5353
if (!is_string($data) || !strlen($data)) {
54-
throw new RuntimeException('Request Failed');
54+
throw new \RuntimeException('Request Failed');
5555
}
5656
curl_close($ch);
5757
return json_decode($data, true);

0 commit comments

Comments
 (0)