diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ba4e58a..d637b2db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +v2.0.6 +------- +* Fix error in throw exception without sprintf + v2.0.5 ------- * Fix endpoint customer-carts diff --git a/composer.json b/composer.json index 4092ae39..40b8bd9c 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "alma/alma-php-client", "description": "PHP API client for the Alma payments API", - "version": "2.0.5", + "version": "2.0.6", "type": "library", "require": { "php": "^5.6 || ~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2", diff --git a/src/Client.php b/src/Client.php index ab8a69b7..5e20a8d0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -30,7 +30,7 @@ class Client { - const VERSION = '2.0.5'; + const VERSION = '2.0.6'; const LIVE_MODE = 'live'; const TEST_MODE = 'test'; diff --git a/src/Lib/ArrayUtils.php b/src/Lib/ArrayUtils.php index daebf3a5..cd078e90 100644 --- a/src/Lib/ArrayUtils.php +++ b/src/Lib/ArrayUtils.php @@ -55,7 +55,12 @@ public function checkMandatoryKeys($keys, $array) { foreach ($keys as $key) { if(!array_key_exists($key, $array)){ - throw new MissingKeyException('The key "%s" is missing from the array "%s"', $key, json_encode($array)); + throw new MissingKeyException( + sprintf( + 'The key "%s" is missing from the array "%s"', + $key, + json_encode($array) + )); } } }