Skip to content

Commit

Permalink
Release 1.1.3. Fixes PHP 5.2 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Wong committed May 14, 2014
1 parent 30ae541 commit c8c47c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie/API/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions src/Mollie/API/Resource/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c8c47c6

Please sign in to comment.