-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update mongolid version 3 #21
Conversation
292032d
to
5d9ecd4
Compare
5d9ecd4
to
7c050fb
Compare
*/ | ||
public function setSecretAttribute($value) | ||
public function setSecretAttribute($value): string |
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.
Does Mongolid use the return of a setter to fill a field?
$client->fill([ | ||
'secret' => $client->secret, | ||
], true); | ||
$client->setSecretAttribute($client->secret); |
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.
Using fill is more intuitive than calling setter directly, and works with the syntax $client->secret = 'some-secret';
. I would use fill.
But, if you don't want to change it, you'll have to fix the ClientCommand
and look for other necessary changes.
No description provided.