From: Mikael Nordfeldth Date: Wed, 5 Mar 2014 12:44:34 +0000 (+0100) Subject: Better typing for isSubscribed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f323f234d7a5f0e1e24c83b1b9df1e7251cad102;p=quix0rs-gnu-social.git Better typing for isSubscribed --- diff --git a/classes/Profile.php b/classes/Profile.php index ea87d217ab..fe2ce343d7 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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); } diff --git a/classes/User.php b/classes/User.php index a6b04d5905..2b390bb90b 100644 --- a/classes/User.php +++ b/classes/User.php @@ -134,7 +134,7 @@ class User extends Managed_DataObject return $this->_profile; } - function isSubscribed($other) + function isSubscribed(Profile $other) { return $this->getProfile()->isSubscribed($other); }