Skip to content

Commit

Permalink
2.7.7: #87
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 8, 2020
1 parent 097c972 commit ed631b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/stripe"
,"version": "2.7.6"
,"version": "2.7.7"
,"description": "Stripe integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/stripe"
Expand Down
7 changes: 6 additions & 1 deletion lib/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
use Stripe\StripeObject as lO;
/**
* 2017-10-22 Allowing $o to be an array makes my algorithms shorter.
* 2020-07-08
* 1) «Call to undefined method Stripe\Source::__toArray() in vendor/mage2pro/stripe/lib/main.php:14»:
* https://github.com/mage2pro/stripe/issues/87
* 2) The @see \Stripe\StripeObject::__toArray() method was removed from Stripe PHP SDK ≥ 7.
* https://github.com/stripe/stripe-php/blob/v6.0.0/lib/StripeObject.php#L351-L358
* @used-by \Dfe\Stripe\Facade\Card::__construct()
* @used-by \Dfe\Stripe\Facade\Card::__construct()
* @used-by \Dfe\Stripe\Facade\O::toArray()
* @used-by \Dfe\Stripe\Init\Action::redirectUrl()
* @param lO|array(string => mixed) $o
* @return array(string => mixed)
*/
function dfe_stripe_a($o) {return is_array($o) ? $o : $o->__toArray(true);}
function dfe_stripe_a($o) {return is_array($o) ? $o : $o->toArray();}

/**
* 2017-11-12
Expand Down

0 comments on commit ed631b7

Please sign in to comment.