diff --git a/packages/php/compat-checker/src/Checker.php b/packages/php/compat-checker/src/Checker.php index 4d6a4469..145937b0 100644 --- a/packages/php/compat-checker/src/Checker.php +++ b/packages/php/compat-checker/src/Checker.php @@ -85,10 +85,10 @@ public function is_compatible( $plugin_file_path, $file_version ) { // Remove dismissable notices on plugin deactivation. register_deactivation_hook( $plugin_file_path, - array( + [ WCCompatibility::instance( $plugin_basename ), 'remove_dismissable_notices', - ) + ] ); // Run all compatibility checks.