Skip to content

Commit

Permalink
return empty conekta object instead of empty array in Util.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioMurga committed May 12, 2014
1 parent ef6966b commit 2badef9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@
=== 1.9.5 2014-04-28

* Add FILES for Address, Payee, Payout, PayoutMethod, Method.

=== 1.9.6 2014-05-12

* Return empty Conekta_Object instead of empty array in Util.php
2 changes: 1 addition & 1 deletion lib/Conekta/Conekta.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ abstract class Conekta
public static $apiKey;
public static $apiBase = 'https://api.conekta.io';
public static $apiVersion = '0.3.0';
const VERSION = '1.9.5';
const VERSION = '1.9.6';

public static function setApiKey($apiKey)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Conekta/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function convertToConektaObject($resp)
$instance->loadFromArray($resp);
return $instance;
}
return new Conekta_Object();
}
return $resp;
}
Expand Down
1 change: 0 additions & 1 deletion test/Conekta/PayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public function testSuccesfulGetPayout()
"bank" => array(
"account_number" => '032180000118359719',
"account_holder" => 'J D - Radcorp',
"bank" => 'Banorte',
"description" => 'Conekta To JD',
"statement_description" => 'Conekta To JD 111111111',
"statement_reference" => '111111111'
Expand Down

0 comments on commit 2badef9

Please sign in to comment.