Error Details
=============
An error of type E_ERROR was caused in line 194 of the file /nas/content/live/wp-content/plugins/pmpro-cpt/pmpro-cpt.php. Error message: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /nas/content/live/wp-content/plugins/pmpro-cpt/pmpro-cpt.php:194
Stack trace:
#0 /nas/content/live/wp-content/plugins/pmpro-cpt/pmpro-cpt.php(194): trim(Array)
#1 /nas/content/live/wp-includes/class-wp-hook.php(310): pmprocpt_options_validate(Array)
#2 /nas/content/live/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /nas/content/live/wp-includes/formatting.php(5000): apply_filters(‘sanitize_option…’, Array, ‘pmprocpt_option…’, Array)
#4 /nas/content/live/wp-includes/option.php(638): sanitize_option(‘pmprocpt_option…’, Array)
#5 /nas/content/live/wp-includes/option.php(496): add_option(‘pmprocpt_option…’, Array, ”, ‘yes’)
#6 /nas/content/live/wp-admin/options.php(322): update_option(‘pmprocpt_option…’, Array)
#7 {main}
thrown
This came up in ticket 465372 on PHP 8.0.26, and this error happened in my test with PHP 8.0.22.