diff --git a/syntax.php b/syntax.php index 31c1b16..3aacef0 100644 --- a/syntax.php +++ b/syntax.php @@ -33,7 +33,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('',$mode,'plugin_function'); } - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ switch ($state) { case DOKU_LEXER_SPECIAL : return array($state, $match); @@ -42,7 +42,7 @@ function handle($match, $state, $pos, &$handler){ } } - function render($mode, &$renderer, $indata) { + function render($mode, Doku_Renderer $renderer, $indata) { global $conf; if($mode == 'xhtml'){ list($state, $data) = $indata;