dr4Ke/cellbg

Declaration/invocation incompatibility with PHP 7.1

Opened this issue · 2 comments

After upgrading from PHP 5.6 -> 7.1 I began seeing this warning in the apache2 error.log:

PHP Warning: Declaration of syntax_plugin_cellbg::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html_mimi/lib/plugins/cellbg/syntax.php on line 0, referer: http://ouzo.local/doku.php?id=drafts:mrq_sdcore_12345:wiland_university

I had the same warning. 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

tmo26 commented

I observe the same error.
Can this please be fixed in the regular distribution of this plugin?

Thanks in advance!