From: Roland Haeder Date: Mon, 25 Jan 2016 14:40:13 +0000 (+0100) Subject: Added type-hint for StartNoticeSourceLink hooks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ced45a0c94a8fef109c7a88893beef2a773b83b;p=quix0rs-gnu-social.git Added type-hint for StartNoticeSourceLink hooks. Signed-off-by: Roland Haeder --- 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'))) {