Closed NiekvandenBogaard closed 6 years ago
https://github.com/mollie/mollie-api-php/blob/5e81dac60352723ec512edd0ce2b9edfb859b888/src/Mollie/API/Client.php#L406
$connectionErrors stores all connection error numbers as KEYS not as VALUES so 'in_array' function should be replaced by 'array_key_exists' function on the mentioned line.
Hi Niek,
Nice find! Fixed it in https://github.com/mollie/mollie-api-php/pull/137 Feel free to create a PR next time :)
https://github.com/mollie/mollie-api-php/blob/5e81dac60352723ec512edd0ce2b9edfb859b888/src/Mollie/API/Client.php#L406
$connectionErrors stores all connection error numbers as KEYS not as VALUES so 'in_array' function should be replaced by 'array_key_exists' function on the mentioned line.