Skip to content

Commit

Permalink
Merge pull request #566 from ryangreenberg/patch-1
Browse files Browse the repository at this point in the history
Fix dangling message contents for Card::update
  • Loading branch information
ob-stripe authored Jan 25, 2019
2 parents b21d9a4 + 87b4e2e commit e0ae223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function retrieve($_id, $_opts = null)
{
$msg = "Cards cannot be accessed without a customer, recipient or account ID. " .
"Retrieve a card using \$customer->sources->retrieve('card_id'), " .
"\$recipient->cards->retrieve('card_id'), or";
"\$recipient->cards->retrieve('card_id'), or " .
"\$account->external_accounts->retrieve('card_id') instead.";
throw new Error\InvalidRequest($msg, null);
}
Expand All @@ -98,7 +98,7 @@ public static function update($_id, $_params = null, $_options = null)
{
$msg = "Cards cannot be accessed without a customer, recipient or account ID. " .
"Call save() on \$customer->sources->retrieve('card_id'), " .
"\$recipient->cards->retrieve('card_id'), or";
"\$recipient->cards->retrieve('card_id'), or " .
"\$account->external_accounts->retrieve('card_id') instead.";
throw new Error\InvalidRequest($msg, null);
}
Expand Down

0 comments on commit e0ae223

Please sign in to comment.