Skip to content

Commit

Permalink
Merge pull request #3 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
timostamm committed Feb 8, 2016
2 parents 7e56154 + 7446f7d commit 0532425
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions syntax/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function connectTo($mode) {
/**
* Handle matches
*/
public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){
$matches = array();

// found link
Expand All @@ -73,7 +73,7 @@ public function handle($match, $state, $pos, &$handler){
* @param array $data
* @return boolean
*/
public function render($mode, &$renderer, $data) {
public function render($mode, Doku_Renderer $renderer, $data) {
if ($mode != 'xhtml') return false;

// render link
Expand Down
4 changes: 2 additions & 2 deletions syntax/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function connectTo($mode) {
/**
* Handle matches
*/
public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){
$matches = array();

// found list
Expand All @@ -74,7 +74,7 @@ public function handle($match, $state, $pos, &$handler){
* @param array $data
* @return boolean
*/
public function render($mode, &$renderer, $data) {
public function render($mode, Doku_Renderer $renderer, $data) {
if ($mode != 'xhtml') return false;

// render list
Expand Down
4 changes: 2 additions & 2 deletions syntax/tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function connectTo($mode) {
/**
* Handle matches
*/
public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){
$matches = array();

// found tree
Expand All @@ -75,7 +75,7 @@ public function handle($match, $state, $pos, &$handler){
* @param array $data
* @return boolean
*/
public function render($mode, &$renderer, $data) {
public function render($mode, Doku_Renderer $renderer, $data) {
if ($mode != 'xhtml') return false;

// render tree
Expand Down

0 comments on commit 0532425

Please sign in to comment.