Skip to content

Conversation

@xurshudyan
Copy link
Contributor

This PR updates the offsetExists() method to ensure that the modelsShouldPreventAccessingMissingAttributes static flag is always restored to its previous value. The method temporarily disables the flag while checking for an attribute, but if getAttribute() throws an exception, the flag would remain in the wrong state

@taylorotwell taylorotwell merged commit 8064d95 into laravel:12.x Nov 29, 2025
76 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