Skip to content

Conversation

@danieleisenhardt
Copy link

Laravel's [8.x] Attribute Cast / Accessor Improvements uses HasAttributes::getAttributeMarkedMutatorMethods($class) when calling attributesToArray() which tries to construct a new instance of the class without providing constructor arguments.

laravel-menu's MenuItem has mandatory constructor arguments.

Therefore I have created MenuItem::attributesToArray() which does not call that function.

@RSpeekenbrink RSpeekenbrink self-requested a review February 23, 2022 11:51
@RSpeekenbrink RSpeekenbrink added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Feb 23, 2022
@RSpeekenbrink RSpeekenbrink merged commit da37c4b into RSpeekenbrink:master Feb 23, 2022
@RSpeekenbrink
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants