From a4966ce89703eec1afb2a4cca1ce4fca4f1956fb Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Sat, 12 Apr 2025 01:36:31 +0100 Subject: [PATCH] Add PHPDoc annotations to suppress Intelephense warnings in main plugin file --- fix-plugin-does-not-exist-notices.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fix-plugin-does-not-exist-notices.php b/fix-plugin-does-not-exist-notices.php index 81d15a8..2fa3f88 100644 --- a/fix-plugin-does-not-exist-notices.php +++ b/fix-plugin-does-not-exist-notices.php @@ -6,6 +6,8 @@ * @author Marcus Quinn * @copyright 2023 WP ALLSTARS * @license GPL-2.0+ + * @noinspection PhpUndefinedFunctionInspection + * @noinspection PhpUndefinedConstantInspection * * @wordpress-plugin * 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 string $context The plugin context (e.g., 'all', 'active', 'inactive'). * @return array The potentially modified array of plugin action links. + * @noinspection PhpUnusedParameterInspection */ public function add_remove_reference_action( $actions, $plugin_file, $plugin_data, $context ) { // Only run on the plugins page.