Skip to content

Commit

Permalink
Pass int to &$still_running of curl_multi_exec (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Mar 7, 2022
1 parent c1fd316 commit 74ca2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -105,11 +105,6 @@ parameters:
count: 1
path: src/Handler/CurlMultiHandler.php

-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$active has unknown class CurlMultiHandle as its type\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php

-
message: "#^Return typehint of method GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:__get\\(\\) has invalid type CurlMultiHandle\\.$#"
count: 1
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/CurlMultiHandler.php
Expand Up @@ -32,9 +32,9 @@ class CurlMultiHandler
private $selectTimeout;

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

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

0 comments on commit 74ca2cb

Please sign in to comment.