Skip to content

Conversation

willtj
Copy link
Contributor

@willtj willtj commented Jun 11, 2025

Let me know if I've misunderstood expected behaviour here, but it looks like there's a bug where cached casts aren't reset when calling discardChanges() so accessing those attributes after a discard will return incorrect values.

The test reproduces the issue and hopefully does a decent job of explaining what I mean.

@taylorotwell taylorotwell merged commit 959fac8 into laravel:12.x Jun 11, 2025
62 checks passed
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.

2 participants