Skip to content

v1.1.2

Choose a tag to compare

@Athlon1600 Athlon1600 released this 08 Oct 02:07
· 15 commits to master since this release
  • Fixed bug where the custom cURL options passed to the request method weren't properly overriding default options. + operator does not work the same way as array_merge specifically regarding order:

If an array key exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored.

https://www.php.net/manual/en/function.array-merge.php

Therefore default_options + custom_options had to be changed to: custom_options + default_options