From 4ced45a0c94a8fef109c7a88893beef2a773b83b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 Jan 2016 15:40:13 +0100 Subject: [PATCH] Added type-hint for StartNoticeSourceLink hooks. Signed-off-by: Roland Haeder --- plugins/Linkback/LinkbackPlugin.php | 2 +- plugins/OStatus/OStatusPlugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Linkback/LinkbackPlugin.php b/plugins/Linkback/LinkbackPlugin.php index 212aaca55f..f44a11ac64 100644 --- a/plugins/Linkback/LinkbackPlugin.php +++ b/plugins/Linkback/LinkbackPlugin.php @@ -389,7 +389,7 @@ class LinkbackPlugin extends Plugin return true; } - function onStartNoticeSourceLink($notice, &$name, &$url, &$title) + function onStartNoticeSourceLink(Notice $notice, &$name, &$url, &$title) { // If we don't handle this, keep the event handler going if (!in_array($notice->source, array('linkback'))) { diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 0cc5878fbd..580abf94e0 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -589,7 +589,7 @@ class OStatusPlugin extends Plugin * @param string out &$title * @return mixed hook return code */ - function onStartNoticeSourceLink($notice, &$name, &$url, &$title) + function onStartNoticeSourceLink(Notice $notice, &$name, &$url, &$title) { // If we don't handle this, keep the event handler going if (!in_array($notice->source, array('ostatus', 'share'))) { -- 2.39.5