- Mon Mar 06, 2023 7:50 pm
#830443
class.templatePower.php on line 608 throws fatal error: " sizeof(): Argument #1 ($value) must be of type Countable|array, null given"
This due to PHP 8 error for count on null values.
Line 608: $lastitem = sizeof($parent);
should be changed to: !null ?? $lastitem = sizeof($parent);
or for backwards compatibility: if ($parent !== null) {$lastitem = sizeof($parent);}
Code change tested on Stack 285.
This due to PHP 8 error for count on null values.
Line 608: $lastitem = sizeof($parent);
should be changed to: !null ?? $lastitem = sizeof($parent);
or for backwards compatibility: if ($parent !== null) {$lastitem = sizeof($parent);}
Code change tested on Stack 285.