Skip to content
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

isSubscribedBy expects an int #12

Closed
ctf0 opened this issue Jul 10, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@ctf0
Copy link
Contributor

commented Jul 10, 2019

/**
* Check if user is subscribed by given user.
*
* @param int $user
*
* @return bool
*/
public function isSubscribedBy($user)
{
return Interaction::isRelationExists($this, 'subscribers', $user);
}

does it mean i should send an id or is it a doc typo ?

@mkwsra

This comment has been minimized.

Copy link
Member

commented Jul 11, 2019

It's a typo, it should not be int
It should be an eloquent object

@ctf0

This comment has been minimized.

Copy link
Contributor Author

commented Jul 11, 2019

i will send a PR with the fix

@ctf0 ctf0 closed this Jul 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.