From: Roland Haeder Date: Mon, 25 Jan 2016 15:37:38 +0000 (+0100) Subject: Added type-hint for StartMakeEntryForm and renamed $out to $action X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e23ed7342bb9dc9e17227e888d90f765a5f18d1;p=quix0rs-gnu-social.git Added type-hint for StartMakeEntryForm and renamed $out to $action Signed-off-by: Roland Haeder --- diff --git a/lib/microappplugin.php b/lib/microappplugin.php index 8c0744806e..fdf0c2145f 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -130,10 +130,10 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin return true; } - function onStartMakeEntryForm($tag, $out, &$form) + function onStartMakeEntryForm($tag, Action $action, Form &$form) { if ($tag == $this->tag()) { - $form = $this->entryForm($out); + $form = $this->entryForm($action); return false; } diff --git a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php index aa94c349d0..b5e1eed878 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -240,7 +240,7 @@ class RequireValidatedEmailPlugin extends Plugin * * @return boolean hook value */ - function onStartMakeEntryForm($tag, $action, &$form) + function onStartMakeEntryForm($tag, Action $action, Form &$form) { $user = common_current_user(); if (!empty($user)) {