Skip to content

Function declaration #5

@airflo

Description

@airflo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions