Skip to content

Commit

Permalink
Fix StripeObject values problem (laravel#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrisbee authored Oct 6, 2022
1 parent bc05151 commit 4ff5f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ protected function refreshWithExpandedData()
'total_tax_amounts.tax_rate',
];

if (property_exists($this->invoice, 'id') && $this->invoice->id) {
if (isset($this->invoice->id) && $this->invoice->id) {
$this->invoice = $this->owner->stripe()->invoices->retrieve($this->invoice->id, [
'expand' => $expand,
]);
Expand Down

0 comments on commit 4ff5f0c

Please sign in to comment.