Skip to content

Conversation

@apeschar
Copy link
Contributor

@apeschar apeschar commented Nov 3, 2022

Commit e0c2620 (PR #40022) caused HasAttribute::getMutatedAttributes to break when the trait is used on a class that has required constructor arguments.

The other introspective methods use the current instance of the class to do their magic instead of instantiating a new instance. This could be done for getMutatedAttributes as well, and this PR does that.

@apeschar apeschar changed the title Fix HasAttributes::getMutatedAttributes for classes with constructor args [9.x] Fix HasAttributes::getMutatedAttributes for classes with constructor args Nov 3, 2022
@taylorotwell taylorotwell merged commit dc044ca into laravel:9.x Nov 9, 2022
@apeschar apeschar deleted the has-attributes-with-reqd-constructor-args-9 branch November 10, 2022 14:08
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