diff --git a/examples/curl.php b/examples/curl.php index 18f0cc8..58bddad 100644 --- a/examples/curl.php +++ b/examples/curl.php @@ -66,7 +66,7 @@ public function __construct() public function addHandle($curlHandle) { - curl_multi_add_handle($mh, $curlHandle); + curl_multi_add_handle($this->curlMultiHandle, $curlHandle); } } diff --git a/lib/coroutine.php b/lib/coroutine.php index f664efa..1a2cd90 100644 --- a/lib/coroutine.php +++ b/lib/coroutine.php @@ -4,8 +4,6 @@ namespace Sabre\Event; -use Generator; - /** * Turn asynchronous promise-based code into something that looks synchronous * again, through the use of generators.