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
Matthias Schulte committed Mar 5, 2016
2 parents 54559dd + da0aca9 commit 76f3782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class action_plugin_hidepages extends DokuWiki_Action_Plugin {

public function register(Doku_Event_Handler &$controller) {
public function register(Doku_Event_Handler $controller) {
$controller->register_hook('PAGEUTILS_ID_HIDEPAGE', 'BEFORE', $this, 'handle_hidepages');
}

Expand Down
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function connectTo($mode) {
$this->Lexer->addSpecialPattern('~~HIDEPAGE.*?~~', $mode, 'plugin_hidepages');
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
$data = array();
$match = hsc(trim($match));

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

function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == "metadata") {
// set flag in metadata to hide page in action component
if(!is_array($data)) {
Expand Down

0 comments on commit 76f3782

Please sign in to comment.