diff --git a/composer.json b/composer.json index 4afd83d..3be1f38 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,5 @@ "psr-4": { "Origami\\Stripe\\": "src/" } - }, - "extra": { - "branch-alias": { - "dev-master": "1.2-dev" - } } } diff --git a/src/Payment.php b/src/Payment.php index a28c4a2..8d502cd 100644 --- a/src/Payment.php +++ b/src/Payment.php @@ -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()