Skip to content

Commit

Permalink
Merge pull request #2 from splitbrain-forks/php7-signature
Browse files Browse the repository at this point in the history
Adjust method signatures to match parent
  • Loading branch information
michitux committed Feb 27, 2016
2 parents 16e8b89 + 41d5bb9 commit 454a21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function connectTo($mode) {
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {

$match = substr($match, 7, -2);
list($base, $title) = explode('|', $match, 2);
Expand All @@ -58,7 +58,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {

// construct requested URL
$base = hsc($data[0]);
Expand Down

0 comments on commit 454a21a

Please sign in to comment.