PHP 8 Issues
-
Hello,
I’m trying to use this plugin via PHP 8 but keep running in the same error:
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method change_case::register_button() cannot be called statically
I think the issue may be the following filter hook:
add_filter( ‘mce_buttons’, array( __CLASS__, ‘register_button’ ) );
The
register_button()defaults to being public but not static since it’s missing the static keyword. If the static keyword is added, this should fix the PHP 8 issue.
The topic ‘PHP 8 Issues’ is closed to new replies.