From b3622a94110a977b7ba8254ea0125474bb65d7d3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 2 Feb 2016 16:05:29 +0100 Subject: [PATCH] Adjust method signatures to match parent --- syntax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.php b/syntax.php index 1a6605a..1f78f34 100644 --- a/syntax.php +++ b/syntax.php @@ -16,7 +16,7 @@ public function connectTo($mode) { $this->Lexer->addSpecialPattern('\[\[gitlabapi>[a-zA-Z0-9.-]+>[a-z0-9]+\]\]', $mode, 'plugin_gitlab'); } - public function handle($match, $state, $pos, Doku_Handler &$handler) { + public function handle($match, $state, $pos, Doku_Handler $handler) { list($name, $repository_name, $commit_id) = explode('>', $match); $commit_id_short = substr($commit_id, 0, -2); list($repository_id, $web_url)= $this->getInfoByName($repository_name); @@ -25,7 +25,7 @@ public function handle($match, $state, $pos, Doku_Handler &$handler) { return array($web_url, $commit_id_long, $commit_msg); } - public function render($mode, Doku_Renderer &$renderer, $data) { + public function render($mode, Doku_Renderer $renderer, $data) { // $data is what the function handle return'ed. if($mode == 'xhtml'){ /** @var Doku_Renderer_xhtml $renderer */