mirror of
https://github.com/guzzle/guzzle.git
synced 2025-04-22 15:42:14 +02:00
Fix count being called on null
PHP 7.2 requires arguments to count being an array or an instance of Countable. This property when not initialized, is neither of these, it's null.
This commit is contained in:
parent
423bf39e6d
commit
375c01b636
@ -16,7 +16,7 @@ use Psr\Http\Message\RequestInterface;
|
||||
class CurlFactory implements CurlFactoryInterface
|
||||
{
|
||||
/** @var array */
|
||||
private $handles;
|
||||
private $handles = [];
|
||||
|
||||
/** @var int Total number of idle handles to keep in cache */
|
||||
private $maxHandles;
|
||||
|
Loading…
x
Reference in New Issue
Block a user