From: Roland Haeder Date: Wed, 18 Mar 2015 16:12:55 +0000 (+0100) Subject: Added checked type-hint for StartNoticeDistribute event. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ac8070e00b0ed9999134304c4d4afaa068c422c2;p=quix0rs-gnu-social.git Added checked type-hint for StartNoticeDistribute event. Signed-off-by: Roland Haeder --- diff --git a/plugins/ForceGroup/ForceGroupPlugin.php b/plugins/ForceGroup/ForceGroupPlugin.php index 56e33355e8..a27436e6fa 100644 --- a/plugins/ForceGroup/ForceGroupPlugin.php +++ b/plugins/ForceGroup/ForceGroupPlugin.php @@ -49,7 +49,7 @@ class ForceGroupPlugin extends Plugin * @param Notice $notice * @return boolean event hook return */ - function onStartNoticeDistribute($notice) + function onStartNoticeDistribute(Notice $notice) { $profile = $notice->getProfile(); diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index 2d03fe2afc..5e0f3f780e 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -54,7 +54,7 @@ class GNUsocialPhotosPlugin extends Plugin return true; } - function onStartNoticeDistribute($notice) + function onStartNoticeDistribute(Notice $notice) { common_log(LOG_INFO, "event: StartNoticeDistribute"); if (GNUsocialPhotoTemp::$tmp) {