v2.9.1
last updated: Mar 21, 2018
🚀 Enhancements
• Be able to limit items that will be shown at the Search Object. (PR #75)
There was a new parameter that Omise-PHP hasn't supported yet on the Search API.
So, this PR is to support per_page
attribute on Search API.
Ref: https://www.omise.co/search-api
👾 Bug Fixes
• Fix PHP v7.2 raise a warning message when execute OmiseApiResource::execute() with non-array assigned at the first argument. (PR #71)
A warning message
Warning: count(): Parameter must be an array or an object that implements Countable in
/var/www/html/omise/omise-php/lib/omise/res/OmiseApiResource.php on line 295
will be raised if using Omise-PHP library with PHP v7.2
.
This issue happened because PHP v7.2 has been improved the count
function and more strict with a parameter that will be passed with. So if we execute OmiseCharge::retrieve('id');
this will be error (the first arg is a string not array).
Contributors: @forfunza, @keeratita