]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better typing for isSubscribed
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 5 Mar 2014 12:44:34 +0000 (13:44 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 5 Mar 2014 12:44:34 +0000 (13:44 +0100)
classes/Profile.php
classes/User.php

index ea87d217ab4112706d6673b2bda6a6cac82bdea0..fe2ce343d7bf92f6eec42e1ece2a2c6aafaf7e41 100644 (file)
@@ -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);
     }
index a6b04d59050ef6319e3acf4d50d11a893f2d13fd..2b390bb90bbdea80a26555c0f53375ea71772bf3 100644 (file)
@@ -134,7 +134,7 @@ class User extends Managed_DataObject
         return $this->_profile;
     }
 
-    function isSubscribed($other)
+    function isSubscribed(Profile $other)
     {
         return $this->getProfile()->isSubscribed($other);
     }