Add PHPDoc annotations to suppress Intelephense warnings in main plugin file

This commit is contained in:
2025-04-12 01:36:31 +01:00
parent 0e09e70c90
commit 5223688282

View File

@ -6,6 +6,8 @@
* @author Marcus Quinn * @author Marcus Quinn
* @copyright 2023 WP ALLSTARS * @copyright 2023 WP ALLSTARS
* @license GPL-2.0+ * @license GPL-2.0+
* @noinspection PhpUndefinedFunctionInspection
* @noinspection PhpUndefinedConstantInspection
* *
* @wordpress-plugin * @wordpress-plugin
* Plugin Name: Fix 'Plugin file does not exist.' Notices * Plugin Name: Fix 'Plugin file does not exist.' Notices
@ -191,6 +193,7 @@ class Fix_Plugin_Does_Not_Exist_Notices {
* @param array $plugin_data An array of plugin data. * @param array $plugin_data An array of plugin data.
* @param string $context The plugin context (e.g., 'all', 'active', 'inactive'). * @param string $context The plugin context (e.g., 'all', 'active', 'inactive').
* @return array The potentially modified array of plugin action links. * @return array The potentially modified array of plugin action links.
* @noinspection PhpUnusedParameterInspection
*/ */
public function add_remove_reference_action( $actions, $plugin_file, $plugin_data, $context ) { public function add_remove_reference_action( $actions, $plugin_file, $plugin_data, $context ) {
// Only run on the plugins page. // Only run on the plugins page.