Skip to content

[5.5] use $attributes property directly instead of getAttributes() method - #20903

Closed
austenc wants to merge 1 commit into
laravel:5.5from
austenc:5.5
Closed

austenc wants to merge 1 commit into
laravel:5.5from
austenc:5.5

Conversation

@austenc

@austenc austenc commented Aug 31, 2017

Copy link
Copy Markdown
Contributor

This closes #20902 and provides backwards compatibility for code that overrides the getAttributes() method on a model.

@austenc austenc changed the title use $attributes property directly instead of getAttributes() method [5.5] use $attributes property directly instead of getAttributes() method Aug 31, 2017
@taylorotwell

Copy link
Copy Markdown
Member

Eh, the change is correct. The package is just expecting the wrong output from that method.

@austenc

austenc commented Sep 1, 2017

Copy link
Copy Markdown
Contributor Author

Was hesitant about submitting this as the change on the framework side did indeed seem like a move in the right direction. Thanks @taylorotwell

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