Skip to content

Adjust method signatures to match parent #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down