Skip to content

Commit 8ce6ed5

Browse files
committed
client:createRequest return
1 parent 7222ccd commit 8ce6ed5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function __construct($uri = null, $async = false, $keep = false)
9191
* @param $url
9292
* @param bool $async
9393
* @param bool $keep
94+
* @return $this
9495
*/
9596
public function createRequest($url, $async = false, $keep = false)
9697
{
@@ -122,6 +123,8 @@ public function createRequest($url, $async = false, $keep = false)
122123
} else {
123124
$this->client = new swoole_client($this->socketType, $sync);
124125
}
126+
127+
return $this;
125128
}
126129

127130
/**

0 commit comments

Comments
 (0)