Skip to content

Commit

Permalink
Merge pull request #1 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
turnermm committed Jan 22, 2016
2 parents 64045f7 + 17221bb commit 8f7591f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -21,7 +21,7 @@ function getSort(){ return 100; }
function connectTo($mode) {
$this->Lexer->addSpecialPattern('<<CREDITS:.*?>>',$mode,'plugin_credits'); }

function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
preg_match('/<<CREDITS:(.*?)>>/', $match,$matches);

return array( $state, $matches[1]);
Expand All @@ -31,7 +31,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml'){
$this->get_plugin_array();
list($state, $match) = $data;
Expand Down

0 comments on commit 8f7591f

Please sign in to comment.