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
While it indeed may be that the value wasn't used anymore, the constant related to it was real and was used in code. And thus this change broke Laravel Cashier Stripe: laravel/cashier-stripe#1521
Imho, the ideal path for this would be to deprecate the constant and remove it in v11 of the SDK.
To Reproduce
Use Invoice::STATUS_DELETED with a version before v10.12.0, upgrade to v10.12.0 and see the code break.
Expected behavior
Invoice::STATUS_DELETED should remain in minor and patch versions of this library as removing any public API is a breaking change.
Code snippets
No response
OS
macOS
PHP version
PHP 8.2
Library version
v10.12.0
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered:
For a little background, I do think "you can't break what's already broken" is legitimate for removing very broken interfaces under a minor in some circumstances, but in retrospect it was the wrong call here. Here, a user who relied on STATUS_DELETED would likely have had some dead code, not a severe problem with their integration.
Describe the bug
The
deleted
value was removed for invoices in https://github.com/stripe/stripe-php/releases/tag/v10.12.0While it indeed may be that the value wasn't used anymore, the constant related to it was real and was used in code. And thus this change broke Laravel Cashier Stripe: laravel/cashier-stripe#1521
Imho, the ideal path for this would be to deprecate the constant and remove it in v11 of the SDK.
To Reproduce
Use
Invoice::STATUS_DELETED
with a version before v10.12.0, upgrade to v10.12.0 and see the code break.Expected behavior
Invoice::STATUS_DELETED
should remain in minor and patch versions of this library as removing any public API is a breaking change.Code snippets
No response
OS
macOS
PHP version
PHP 8.2
Library version
v10.12.0
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered: