Skip to content

Commit b85cf02

Browse files
author
Okubanjo Oluwafunsho
committed
Modified IsNullException
1 parent 2c688f4 commit b85cf02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exceptions/isNullException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
use Exception;
1515

16-
class isNullException extends Exception {
16+
class IsNullException extends Exception {
1717

1818
}

src/Paystack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function makePaymentRequest()
116116
private function setHttpResponse($relativeUrl, $method, $body = [])
117117
{
118118
if(is_null($method)){
119-
throw new isNullException("Empty method not allowed");
119+
throw new IsNullException("Empty method not allowed");
120120
}
121121

122122
$this->response = $this->client->{strtolower($method)}($this->baseUrl . $relativeUrl, ["body" => json_encode($body)]);

0 commit comments

Comments
 (0)