php 8 errors
-
trialing update to php8.0 (wp 5.6.2, ubuntu 20.04), i get this error:
NOTICE: PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter $observer in /app/wp-content/plugins/css-javascript-toolbox/framework/events/subjects/subject.subject.php:227"
fired from
/app/wp-includes/class-wp-hook.php(287): CJTEESubject->trigger()
if ($this->processFilter($observer)) { // Pass observer referecne along with user params!! $this->result['params']['observer'] = $observer; $this->result['return'] = call_user_func_array(array($observer, 'trigger'), $this->result['params']); // Prepare parameters based on the previous call result! $this->prepareResultParameters(); }
any comment on how i can work around this?
https://php.watch/versions/8.0/named-parameters#named-params-call_user_func_array
shows what is wrong/needs to be changed.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘php 8 errors’ is closed to new replies.