Function declaration
Opened this issue · 0 comments
airflo commented
I had following warnings:
Warning: Declaration of syntax_plugin_googlecal::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /homepages/u50903/domains/fs737.de/dokuwiki/lib/plugins/googlecal/syntax.php on line 82
Warning: Declaration of syntax_plugin_googlecal::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /homepages/u50903/domains/fs737.de/dokuwiki/lib/plugins/googlecal/syntax.php on line 82
I fixed the error by changing the file syntax.php. Dear developer, you should do that, too.
Fixes:
- handle($match, $state, $pos, Doku_Handler $handler)
- render($format, Doku_Renderer $renderer, $data)
- replace variable $mode with $format in the function's body
Best regards,
Florian