From 575add58f76c4b971ee8c0f69b73b1e1a484dd6e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 Jan 2016 16:37:38 +0100 Subject: [PATCH] Added type-hint for StartMakeEntryForm and renamed $out to $action Signed-off-by: Roland Haeder --- lib/microappplugin.php | 4 ++-- plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 b3ae574f16..8f4dd008d6 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -238,7 +238,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)) { -- 2.39.5