You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm retrieving some PaymentIntent with errors and I can't use Stripe\ErrorObject property because the last_payment_error property of a PaymentIntent is an instance of Stripe\StripeObject
To Reproduce
Retrieve a PaymentIntent from Stripe which has a last_payment_error property defined
Dump the PaymentIntent retrieved
Check the last_payment_error property type
The last_payment_error property is an instance of Stripe\StripeObject
Expected behavior
I expect the property to be an instance of Stripe\ErrorObject
Hello, a side effect of this change is we cannot use code such as $paymentIntent->last_payment_error->message anymore as static analysis tools such as phpstan will complain about missing message not being part of the class anymore.
However API docs sill mention those fields.
Describe the bug
I'm retrieving some PaymentIntent with errors and I can't use Stripe\ErrorObject property because the
last_payment_error
property of a PaymentIntent is an instance of Stripe\StripeObjectTo Reproduce
PaymentIntent
from Stripe which has alast_payment_error
property definedPaymentIntent
retrievedlast_payment_error
property typelast_payment_error
property is an instance ofStripe\StripeObject
Expected behavior
I expect the property to be an instance of
Stripe\ErrorObject
Code snippets
OS
Ubuntu 22.04.1 LTS
PHP version
PHP 8.1
Library version
stripe-php v9.0.0
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered: