From 0e09e70c907369dd94c03fc3dce1af6c49a74dc3 Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Sat, 12 Apr 2025 01:33:08 +0100 Subject: [PATCH] Add PHPDoc annotations to suppress Intelephense warnings --- includes/Updater.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/Updater.php b/includes/Updater.php index e2b3067..2b0692e 100644 --- a/includes/Updater.php +++ b/includes/Updater.php @@ -3,6 +3,8 @@ * Plugin Updater * * @package FixPluginDoesNotExistNotices + * @noinspection PhpUndefinedFunctionInspection + * @noinspection PhpUndefinedClassInspection */ namespace WPALLSTARS\FixPluginDoesNotExistNotices; @@ -76,6 +78,7 @@ class Updater { * Check if the plugin was installed from GitHub * * @return bool + * @noinspection PhpUndefinedFunctionInspection */ private function is_github_installation() { // Check for GitHub-specific markers in the plugin directory @@ -101,6 +104,7 @@ class Updater { * Check if the plugin was installed from Gitea * * @return bool + * @noinspection PhpUndefinedFunctionInspection */ private function is_gitea_installation() { // Check for Gitea-specific markers in the plugin directory @@ -121,6 +125,8 @@ class Updater { * Initialize Git Updater Lite * * @return void + * @noinspection PhpUndefinedFunctionInspection + * @noinspection PhpUndefinedClassInspection */ private function init_git_updater() { // Check if the Git Updater Lite class exists (composer autoload)