I get an ErrorException/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php in handleError in this line:
if (count($this->handles) >= $this->maxHandles) {
Expected Behavior
There should not be an exception.
Possible Solutions
$this->handles should be an array or implement Countable. Maybe initialized with an empty array in the constructor.
zmilan, nikhilaGoli, wallcrosstype, splitmango-jeremy, Fahmus, diegogalocha, dmitriyklyuzov, and tylercollier reacted with thumbs up emoji
diegogalocha and dmitriyklyuzov reacted with hooray emoji
All reactions
philiplb, FlorinMotoc, rawzone, stefblokdijk, bshaffer, Daniel1147, cryptiklemur, rubenvl2, pavolsenko, elynnaie, and 23 more reacted with thumbs up emoji
sinkcup, forrestmid, Daniel1147, adrum, danwomersley, yidas, pauletienney, i0, wallcrosstype, splitmango-jeremy, and 2 more reacted with hooray emoji
All reactions
brazenvoid, abdulsalamkhan, penguyen1, ramsis23, ryyip, TheLibzter, dotjsNet, cespon, mikepfly2, LucasLelaidier, and 4 more reacted with hooray emoji
stefanhuber, penguyen1, ramsis23, AODBA, amaurydelassus, and jyotima123 reacted with heart emoji
All reactions
+recurrent tests
*refactoring signature
*refactoring http manager (providerError support csv)
*refactoring client
*soft fixes
+strict dependence on guzzle 6.3 (guzzle/guzzle#1973)
+recurrent tests
*refactoring signature
*refactoring http manager (providerError support csv)
*refactoring client
*soft fixes
+strict dependence on guzzle 6.3 (guzzle/guzzle#1973)
*fix readme and example
+example useRecurrentPayment
+recurrent tests
*refactoring signature
*refactoring http manager (providerError support csv)
*refactoring client
*soft fixes
+strict dependence on guzzle 6.3 (
guzzle/guzzle#1973
)
*fix readme and example
+example useRecurrentPayment
+fix for PR
- count(): Parameter must be an array or an object that implements Countable
- guzzle/guzzle#1973
So give me the version of guzzlehttp
The problem is in PHP 7.2 the parameter for count() can't be NULL. The warning gets displayed when $this->handles equals NULL. Just replace line 67 in CurlFactory.php with the following:
if (($this->handles ? count($this->handles) : 0) >= $this->maxHandles) {
ramsis23, bskimball, lifeforms, Tynael, and adrianputra002 reacted with thumbs up emoji
ramsis23, praveenxavier827, mrtcmn, and adrianputra002 reacted with hooray emoji
mrtcmn, KristofferBerg, and adrianputra002 reacted with heart emoji
All reactions
ErrorException in 51f0db6001c4f9b3b8a340919b69cacf9b5ea4aa.php line 227:
count(): Parameter must be an array or an object that implements Countable (View: C:\xampp\htdocs\bbtravels\resources\views\Frontend\Pages\index.blade.php)
@vinnoangel
this error arises after i replaced line 67 with above line
Otherwise we would be getting warnings: count(): Parameter must be an
array or an object that implements Countable in
GuzzleHttp\Handler\CurlFactory->release()
This is fixed in
guzzle/guzzle#1973
6.3.3 is the last bugfix release for Guzzle 6.3.
Otherwise we would be getting warnings: count(): Parameter must be an
array or an object that implements Countable in
GuzzleHttp\Handler\CurlFactory->release()
This is fixed in
guzzle/guzzle#1973
6.3.3 is the last bugfix release for Guzzle 6.3.
Otherwise we would be getting warnings: count(): Parameter must be an
array or an object that implements Countable in
GuzzleHttp\Handler\CurlFactory->release()
This is fixed in
guzzle/guzzle#1973
6.3.3 is the last bugfix release for Guzzle 6.3.
Otherwise we would be getting warnings: count(): Parameter must be an
array or an object that implements Countable in
GuzzleHttp\Handler\CurlFactory->release()
This is fixed in
guzzle/guzzle#1973
6.3.3 is the last bugfix release for Guzzle 6.3.