From c8c47c64c8ff1cb7b76388846c24cc99219081a7 Mon Sep 17 00:00:00 2001 From: Rick Wong Date: Wed, 14 May 2014 16:46:22 +0200 Subject: [PATCH] Release 1.1.3. Fixes PHP 5.2 support. --- composer.json | 2 +- src/Mollie/API/Client.php | 2 +- src/Mollie/API/Resource/Payments.php | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 61a089ff..3682af13 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mollie/mollie-api-php", - "version": "1.1.2", + "version": "1.1.3", "description": "Mollie API client library for PHP", "homepage": "https://github.com/mollie/mollie-api-php", "license": "BSD-2-Clause", diff --git a/src/Mollie/API/Client.php b/src/Mollie/API/Client.php index c78c4172..33fec798 100644 --- a/src/Mollie/API/Client.php +++ b/src/Mollie/API/Client.php @@ -34,7 +34,7 @@ class Mollie_API_Client /** * Version of our client. */ - const CLIENT_VERSION = "1.1.2"; + const CLIENT_VERSION = "1.1.3"; /** * Endpoint of the remote API. diff --git a/src/Mollie/API/Resource/Payments.php b/src/Mollie/API/Resource/Payments.php index 5f420fad..69fc8d6b 100644 --- a/src/Mollie/API/Resource/Payments.php +++ b/src/Mollie/API/Resource/Payments.php @@ -31,7 +31,6 @@ * * @method Mollie_API_Object_Payment[]|Mollie_API_Object_List all($offset = 0, $limit = 0) * @method Mollie_API_Object_Payment create(array $data) - * @method Mollie_API_Object_Payment get($id) */ class Mollie_API_Resource_Payments extends Mollie_API_Resource_Base { @@ -60,9 +59,9 @@ protected function getResourceObject () */ public function get($payment_id) { - if (empty($payment_id) || strpos($payment_id, static::RESOURCE_ID_PREFIX) !== 0) + if (empty($payment_id) || strpos($payment_id, self::RESOURCE_ID_PREFIX) !== 0) { - throw new Mollie_API_Exception("Invalid payment ID: '{$payment_id}'. A payment ID should start with '" . static::RESOURCE_ID_PREFIX . "'."); + throw new Mollie_API_Exception("Invalid payment ID: '{$payment_id}'. A payment ID should start with '" . self::RESOURCE_ID_PREFIX . "'."); } return parent::get($payment_id);