Skip to content

Commit 59bd447

Browse files
committed
- Added $this return when not callback get/post request
1 parent 47ffc18 commit 59bd447

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Request.php

+6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public function getRequest($url, \Closure $callback = null) {
4242

4343
if (null !== $callback) {
4444
call_user_func_array($callback, [$this->httpResponse, $this->httpInfo]);
45+
return;
4546
}
47+
48+
return $this;
4649
}
4750

4851
/**
@@ -73,7 +76,10 @@ public function postRequest($url, array $payload, \Closure $callback = null) {
7376

7477
if (null !== $callback) {
7578
call_user_func_array($callback, [$this->httpResponse, $this->httpInfo]);
79+
return;
7680
}
81+
82+
return $this;
7783
}
7884

7985
/**

0 commit comments

Comments
 (0)