Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/311
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 3, 2023
1 parent 1ec2771 commit 4706967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StripeClone/Facade/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ final function cardsActive($c):array {return array_filter($this->cards($c), func
* The top-level keys are bank card tokens there, and their values form the corresponding bank card labels.
* So the TBCBank module (unlike the rest modules) does not do any API requests
* to retrieve a customer's saved cards.
* 2023-08-03 "Treat `\Throwable` similar to `\Exception`": https://github.com/mage2pro/core/issues/311
* @used-by \Df\StripeClone\ConfigProvider::cards()
* @used-by \Df\StripeClone\Payer::newCard()
* @used-by \Dfe\Stripe\Method::cardType()
* @param string|array(string => mixed) $d
* @return object|array(string => mixed)|null
*/
final function get($d) {try {return $this->_get($d);} catch (\Exception $e) {return null;}}
final function get($d) {try {return $this->_get($d);} catch (\Throwable $e) {return null;}}
}

0 comments on commit 4706967

Please sign in to comment.