From cb7e3012e3f2dc632240200fb2515c6b06f6b3dc Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 3 Feb 2016 12:48:11 +0100 Subject: [PATCH] Adjust method signatures to match parent --- action.php | 2 +- syntax.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.php b/action.php index e0782ac..e918e2d 100644 --- a/action.php +++ b/action.php @@ -29,7 +29,7 @@ function getInfo() { /** * Register its handlers with the DokuWiki's event controller */ - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'convert2csv',array()); } diff --git a/syntax.php b/syntax.php index 9929ef3..d5bb2e4 100644 --- a/syntax.php +++ b/syntax.php @@ -56,7 +56,7 @@ function connectTo($mode) { /** * Handle the match */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ parse_str($match, $return); return $return; } @@ -64,7 +64,7 @@ function handle($match, $state, $pos, &$handler){ /** * Render output */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { global $INFO; global $ID; global $conf;