Skip to content

Commit 97b24c6

Browse files
committed
Return curl instance when calling MultiCurl::addCurl() like other MultiCurl::add*() methods
1 parent 27abd48 commit 97b24c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Curl/MultiCurl.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,19 @@ public function addSearch($url, $data = array())
286286
}
287287

288288
/**
289-
* Adds a Curl instance to the handle queue
289+
* Add Curl
290+
*
291+
* Add a Curl instance to the handle queue.
290292
*
291293
* @access public
292294
* @param $curl
293295
*
294-
* @return void
296+
* @return object
295297
*/
296298
public function addCurl(Curl $curl)
297299
{
298300
$this->queueHandle($curl);
301+
return $curl;
299302
}
300303

301304
/**

0 commit comments

Comments
 (0)