From c3c876cf4a608acbf0bf4683599dc3d9b861b2f9 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 12 Apr 2023 16:25:32 +0545 Subject: [PATCH] Minor things pointed out by IDE --- examples/curl.php | 2 +- lib/coroutine.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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.