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
After upgrading our app from 11.8.0 to 11.9.0 one of our tests started to fail.
We use Cashier and have an event that listens for Laravel\Cashier\Events\WebhookReceived and then performs some functionality for some other Stripe events. Our test was asserting that some particular function was fired once, but after upgrading to 11.9.0 that function now runs twice.
It appears that the entire event is being run twice. It appears that this may have been caused by #51343 as when I revert that change locally - specifically the change to getProvider - the problem goes away.
Steps To Reproduce
I am still working on a standalone reproduction - trying to determine if this is Laravel specific or related to using Cashier. Will update once I get it going, but opened the issue in case others have run into this issue.
The text was updated successfully, but these errors were encountered:
I have isolated this to us having an existing EventServiceProvider (Laravel 10 app migrated to Laravel 11) which still implemented shouldDiscoverEvents (and returned true). I've removed that and the problem was resolved.
Laravel Version
11.9.0
PHP Version
8.3.7
Database Driver & Version
No response
Description
After upgrading our app from 11.8.0 to 11.9.0 one of our tests started to fail.
We use Cashier and have an event that listens for
Laravel\Cashier\Events\WebhookReceived
and then performs some functionality for some other Stripe events. Our test was asserting that some particular function was fired once, but after upgrading to 11.9.0 that function now runs twice.It appears that the entire event is being run twice. It appears that this may have been caused by #51343 as when I revert that change locally - specifically the change to
getProvider
- the problem goes away.Steps To Reproduce
I am still working on a standalone reproduction - trying to determine if this is Laravel specific or related to using Cashier. Will update once I get it going, but opened the issue in case others have run into this issue.
The text was updated successfully, but these errors were encountered: