Title: PHP8 compatibility: PHP Fatal error: Uncaught ArgumentCountError: array_merge()
Last modified: December 31, 2020

---

# PHP8 compatibility: PHP Fatal error: Uncaught ArgumentCountError: array_merge()

 *  Resolved [misterfu](https://wordpress.org/support/users/misterfu/)
 * (@misterfu)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/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)

 *  Plugin Author [Twentig](https://wordpress.org/support/users/twentig/)
 * (@twentig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-php-fatal-error-uncaught-argumentcounterror-array_merge/#post-13851979)
 * Hi [@misterfu](https://wordpress.org/support/users/misterfu/),
 * Thanks for your feedback and solution. We’re working to ensure that our plugin
   is compatible with PHP 8 and will release a fix in the next release.
 * Please note that according to WordPress, WordPress 5.6 should be considered “
   beta compatible” with PHP 8. This means that most core WordPress functionality
   will work, but unexpected bugs may still occur for some time, even without the
   presence of additional plugins or themes.
 * Best wishes 🙂
 *  Thread Starter [misterfu](https://wordpress.org/support/users/misterfu/)
 * (@misterfu)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-php-fatal-error-uncaught-argumentcounterror-array_merge/#post-13852498)
 * Thank you for the fast feedback, [@twentig](https://wordpress.org/support/users/twentig/)!
 * Even if WordPress is still only ‘beta compatible’ to PHP8, it’s already running
   really smooth. Thanks for considering the fix in the next version of the plugin,
   as well!
 *  Plugin Author [Twentig](https://wordpress.org/support/users/twentig/)
 * (@twentig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-php-fatal-error-uncaught-argumentcounterror-array_merge/#post-13863397)
 * Hi [@misterfu](https://wordpress.org/support/users/misterfu/),
 * We’ve released Twentig 1.2.2, which includes your fix. Thanks again.
 * If you enjoy Twentig, please [leave us a review](https://wordpress.org/support/plugin/twentig/reviews/)
   🙂

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.

 * ![](https://ps.w.org/twentig/assets/icon.svg?rev=2569439)
 * [Twentig Supercharged Block Editor – Blocks, Patterns, Starter Sites, Portfolio](https://wordpress.org/plugins/twentig/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twentig/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twentig/)
 * [Active Topics](https://wordpress.org/support/plugin/twentig/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twentig/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twentig/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Twentig](https://wordpress.org/support/users/twentig/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-php-fatal-error-uncaught-argumentcounterror-array_merge/#post-13863397)
 * Status: resolved