1
0
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:
Niklas Keller 2016-12-15 10:42:19 +01:00
parent 423bf39e6d
commit 375c01b636

View File

@ -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;