From 1728275c7b8334a95e348c4b46657f56b0b8adea Mon Sep 17 00:00:00 2001 From: aymm Date: Tue, 9 Mar 2021 19:42:52 +0000 Subject: [PATCH] Fixed Exception namespace --- src/APnutI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/APnutI.php b/src/APnutI.php index 869c45d..005a377 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -212,11 +212,11 @@ class APnutI $effectiveURL = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); curl_close($ch); if ($http_status === 0) { - throw new Exception('Unable to connect to Pnut ' . $url); + throw new \Exception('Unable to connect to Pnut ' . $url); } if ($request === false) { if (!curl_getinfo($ch, CURLINFO_SSL_VERIFYRESULT)) { - throw new Exception('SSL verification failed, connection terminated: ' . $url); + throw new \Exception('SSL verification failed, connection terminated: ' . $url); } } if (!empty($response)) {