Skip to content

Commit 74ca2cb

Browse files
authored
Pass int to &$still_running of curl_multi_exec (#2991)
1 parent c1fd316 commit 74ca2cb

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ parameters:
105105
count: 1
106106
path: src/Handler/CurlMultiHandler.php
107107

108-
-
109-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$active has unknown class CurlMultiHandle as its type\\.$#"
110-
count: 1
111-
path: src/Handler/CurlMultiHandler.php
112-
113108
-
114109
message: "#^Return typehint of method GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:__get\\(\\) has invalid type CurlMultiHandle\\.$#"
115110
count: 1

src/Handler/CurlMultiHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class CurlMultiHandler
3232
private $selectTimeout;
3333

3434
/**
35-
* @var resource|\CurlMultiHandle|null the currently executing resource in `curl_multi_exec`.
35+
* @var int Will be higher than 0 when `curl_multi_exec` is still running.
3636
*/
37-
private $active;
37+
private $active = 0;
3838

3939
/**
4040
* @var array Request entry handles, indexed by handle id in `addRequest`.

0 commit comments

Comments
 (0)