Skip to content

Commit

Permalink
Removed Null coalescing operator (compatibility).
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrushton committed Jan 18, 2021
1 parent eac7255 commit 9deee81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@
"psr-4": {
"Origami\\Stripe\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
}
}
}
2 changes: 1 addition & 1 deletion src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function capture(Money $amount = null, array $params = [], $options = nul

public function charges()
{
return $this->paymentIntent->charges->data ?? [];
return isset($this->paymentIntent->charges->data) ? $this->paymentIntent->charges->data : [];
}

public function getLastSuccessfulCharge()
Expand Down

0 comments on commit 9deee81

Please sign in to comment.