Skip to content

Commit edacb57

Browse files
authored
Fix: Wrong client id and client secret will leads to fatal error.
1 parent 380e596 commit edacb57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/HttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function setMethod(string $method): self
3333
return $this;
3434
}
3535

36-
public function fetch(): object
36+
public function fetch(): ?object
3737
{
3838
try {
3939
$curl = curl_init();
@@ -58,4 +58,4 @@ public function fetch(): object
5858
throw new \Exception("Curl request Failed. Reason: ". $e->getMessage());
5959
}
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)