TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, bool given at vendor/braintree/braintree_php/lib/Braintree/CreditCard.php:126 #341
(TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, bool given at vendor/braintree/braintree_php/lib/Braintree/CreditCard.php:126
Code looks like if (isset($creditCardAttribs['verifications']) && count($creditCardAttribs['verifications']) > 0) but seems sometimes it returns as a boolean.
General information
Issue description
(TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, bool given at vendor/braintree/braintree_php/lib/Braintree/CreditCard.php:126
Code looks like
if (isset($creditCardAttribs['verifications']) && count($creditCardAttribs['verifications']) > 0)
but seems sometimes it returns as a boolean.