]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
RSVP stricter typing
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Jun 2014 12:16:34 +0000 (14:16 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Jun 2014 12:16:34 +0000 (14:16 +0200)
plugins/Event/classes/RSVP.php

index 926f6b7d0843e828c1d06e3d78c4f1e57ea70306..7ca29b280eeb5235578c266ac69c4ff8c23f6ad3 100644 (file)
@@ -224,12 +224,12 @@ class RSVP extends Managed_DataObject
         return $notice;
     }
 
-    static function fromNotice($notice)
+    static function fromNotice(Notice $notice)
     {
         return RSVP::getKV('uri', $notice->uri);
     }
 
-    static function forEvent($event)
+    static function forEvent(Happening $event)
     {
         $keypart = sprintf('rsvp:for-event:%s', $event->id);