PHP 8 Warnings when assignee in TODOLIST has no todos
arlt opened this issue · comments
~~TODOLIST ns:test:plugins assigned:arlt~~
if nothing is assigned, i get a warning in log:
AH01071: Got error 'PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/dokuwiki/lib/plugins/todo/syntax/list.php on line 322'
Dokuwiki log:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given /var/www/dokuwiki/lib/plugins/todo/syntax/list.php(322)
Dokuwiki doesn't work anymore.
If i remove the box plugin from the plugin folder, all works fine again.
Dokuwiki Hogfather + PHP 7.4 works
Dokuwiki Igor + PHP 7.4 works
Dokuwiki Igor + PHP 8.1 fails
maybe related to #121
I just did a merge from master to stable.
The issue was already in stable but some other fixes not. Please upgrade the plugin and check again if this issue is fixed (i have no PHP8 running ).