PHP8 compatibility: PHP Fatal error: Uncaught ArgumentCountError: array_merge()
-
I was experiencing the following issue:
PHP message: PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /(…)/wp-content/plugins/twentig/inc/theme-tools/customizer-functions.php:38
This fixed it:
- $choices = call_user_func_array( 'array_merge', $choices ); + $choices = call_user_func_array( 'array_merge', array_values($choices) );Maybe it could be considered in the next update? 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP8 compatibility: PHP Fatal error: Uncaught ArgumentCountError: array_merge()’ is closed to new replies.