RSVP stricter typing

This commit is contained in:
Mikael Nordfeldth 2014-06-23 14:16:34 +02:00
parent 734287cfd3
commit 658c6ab9a8

View File

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