Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Fix key handling for ModelWatcher #1180

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Conversation

driesvints
Copy link
Member

It seems a breakage snuck in with my previous PR: #1174. Because the payload is decoded as an associative array (as should because we can't guarantee the data order in the payload), when new events happen with this payload we'll need to reference the named key instead.

It's beyond me why new events are recorded but I guess this can happen since every eloquent model event is being watched.

Fixes #1178

@taylorotwell taylorotwell merged commit 1770fa4 into 4.x Feb 3, 2022
@taylorotwell taylorotwell deleted the fix-model-watcher branch February 3, 2022 15:27
@yasirhashmi88
Copy link

@driesvints If you can, could you please create new release. Thanks

@driesvints
Copy link
Member Author

@yasirhashmi88 did this work for you?

@driesvints
Copy link
Member Author

Nvm. I'll tag a new release tomorrow.

@yasirhashmi88
Copy link

@driesvints Yes it does. Thanks.

@driesvints
Copy link
Member Author

@yasirhashmi88 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: ErrorException: Undefined array key 0
3 participants