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
solewniczak committed Feb 1, 2017
2 parents 3b56571 + 6565f60 commit e8171a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.php
Expand Up @@ -17,7 +17,7 @@
* need to inherit from this class
*/
class action_plugin_alphalist extends DokuWiki_Action_Plugin {
function register(&$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, '_preventCache', array ());
}
/**
Expand Down
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -30,7 +30,7 @@ function connectTo($mode) {
$this->Lexer->addSpecialPattern('\[alphalist.*?\]',$mode,'plugin_alphalist');
}

function handle($match, $state, $pos, &$handler)
function handle($match, $state, $pos, Doku_Handler $handler)
{
global $ID;

Expand Down Expand Up @@ -130,7 +130,7 @@ function handle($match, $state, $pos, &$handler)
return $list;
}

function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
setlocale(LC_COLLATE, $this->getConf('locale'));
if($mode == 'xhtml') {

Expand Down

0 comments on commit e8171a7

Please sign in to comment.