Better typing for isSubscribed
This commit is contained in:
parent
f83b2cf324
commit
f323f234d7
|
@ -745,7 +745,7 @@ class Profile extends Managed_DataObject
|
|||
* @param Profile $other
|
||||
* @return boolean
|
||||
*/
|
||||
function isSubscribed($other)
|
||||
function isSubscribed(Profile $other)
|
||||
{
|
||||
return Subscription::exists($this, $other);
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ class User extends Managed_DataObject
|
|||
return $this->_profile;
|
||||
}
|
||||
|
||||
function isSubscribed($other)
|
||||
function isSubscribed(Profile $other)
|
||||
{
|
||||
return $this->getProfile()->isSubscribed($other);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user