From ac8070e00b0ed9999134304c4d4afaa068c422c2 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 18 Mar 2015 17:12:55 +0100 Subject: [PATCH] Added checked type-hint for StartNoticeDistribute event. Signed-off-by: Roland Haeder --- plugins/ForceGroup/ForceGroupPlugin.php | 2 +- plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5