Skip to content

[11.x] Fix casts + withAttributes - #54422

Merged
taylorotwell merged 6 commits into
laravel:11.xfrom
tontonsb:patch-31
Feb 5, 2025
Merged

taylorotwell merged 6 commits into
laravel:11.xfrom
tontonsb:patch-31

Conversation

@tontonsb

@tontonsb tontonsb commented Jan 30, 2025

Copy link
Copy Markdown
Contributor

An issue was reported in a comment so I decided to test the pending attributes with multiple methods of casting attributes.

The error was becacuse of an inappropriate use of hasAttribute, this fixes it and adds a test for that case and some more cast tests.

@tontonsb
tontonsb marked this pull request as draft January 30, 2025 17:44
@tontonsb
tontonsb marked this pull request as ready for review January 31, 2025 22:17
@tontonsb tontonsb changed the title Test casts for pending attributes Fix casts + withAttributes Jan 31, 2025
@tontonsb tontonsb changed the title Fix casts + withAttributes [11.x] Fix casts + withAttributes Jan 31, 2025
@taylorotwell
taylorotwell merged commit 9f07081 into laravel:11.x Feb 5, 2025
@tontonsb
tontonsb deleted the patch-31 branch February 5, 2025 14:29
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