bmlt-enabled / bread

BMLT Meeting List Generator Plugin For Wordpress https://wordpress.org/plugins/bread/
https://wordpress.org/plugins/bread/
GNU General Public License v2.0
6 stars 9 forks source link

couple php 8 fixes, update docker #181

Closed pjaudiomv closed 2 years ago

pjaudiomv commented 2 years ago

this resolves an issue with plugin activation on new installs with php8

Fatal error: Uncaught TypeError: call_user_func_array(): Argument 
  #1 ($callback) must be a valid callback, non-static method Bread::activation() cannot be called statically in /var/www/html/wp-includes/class-wp-hook.php:303 Stack trace: 
  #0 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) 
  #1 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) 
  #2 /var/www/html/wp-admin/plugins.php(193): do_action('activate_bread/...') 
  #3 {main} thrown in /var/www/html/wp-includes/class-wp-hook.php on line 303