* @return boolean hook value; true means continue processing, false means stop.
*/
- function onEndNoticeSave($notice)
+ function onEndNoticeSave(Notice $notice)
{
try {
function onEndShowNoticeOptionItems($nli)
{
+ // FIXME: Cannot use type-hint NoticeListItem as NoticeListItemAdapter exists, too!
+ assert(is_object($nli));
+
$profile = Profile::current();
if (!empty($profile) && $profile->hasRight(self::TRAINSPAM)) {