Issue with findInvoice()
returning with an undefined variable: stripeInvoice
#815
Labels
findInvoice()
returning with an undefined variable: stripeInvoice
#815
Description:
If the invoice is not retrieved from Stripe for whatever reason, the variable
$stripeInvoice
will not be set.This results in
return new Invoice($this, $stripeInvoice);
failing.Perhaps there should be a check in place (e.g.
if (!isset($stripeInvoice)) { return null; }
) to prevent an undefined variable error. Happy to put a PR together.The text was updated successfully, but these errors were encountered: