-
-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename ApiSerializer's mutate to attributes #2578
Rename ApiSerializer's mutate to attributes #2578
Conversation
1bb0845
to
f6a8c37
Compare
c39edea
to
247f89e
Compare
@@ -67,13 +67,35 @@ public function attribute(string $name, $callback) | |||
* | |||
* @return self | |||
*/ | |||
public function mutate($callback) | |||
public function attributes($callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized, we need to deprecate the mutate
method, since that was released in the previous version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is deprecated, look below this code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I.... don't know how I missed that... What.... 🙈
@@ -67,13 +67,35 @@ public function attribute(string $name, $callback) | |||
* | |||
* @return self | |||
*/ | |||
public function mutate($callback) | |||
public function attributes($callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I.... don't know how I missed that... What.... 🙈
Part of #1891
Confirmed
composer test
).Required changes: