Add PHPDoc annotations to suppress Intelephense warnings
Some checks failed
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/tag/woodpecker Pipeline is pending
Build Release / Build and Create Release (push) Has been cancelled
Build Release / Deploy to WordPress.org (push) Has been cancelled

This commit is contained in:
2025-04-12 01:33:08 +01:00
parent 0a98ba8c2e
commit 0e09e70c90

View File

@ -3,6 +3,8 @@
* Plugin Updater * Plugin Updater
* *
* @package FixPluginDoesNotExistNotices * @package FixPluginDoesNotExistNotices
* @noinspection PhpUndefinedFunctionInspection
* @noinspection PhpUndefinedClassInspection
*/ */
namespace WPALLSTARS\FixPluginDoesNotExistNotices; namespace WPALLSTARS\FixPluginDoesNotExistNotices;
@ -76,6 +78,7 @@ class Updater {
* Check if the plugin was installed from GitHub * Check if the plugin was installed from GitHub
* *
* @return bool * @return bool
* @noinspection PhpUndefinedFunctionInspection
*/ */
private function is_github_installation() { private function is_github_installation() {
// Check for GitHub-specific markers in the plugin directory // Check for GitHub-specific markers in the plugin directory
@ -101,6 +104,7 @@ class Updater {
* Check if the plugin was installed from Gitea * Check if the plugin was installed from Gitea
* *
* @return bool * @return bool
* @noinspection PhpUndefinedFunctionInspection
*/ */
private function is_gitea_installation() { private function is_gitea_installation() {
// Check for Gitea-specific markers in the plugin directory // Check for Gitea-specific markers in the plugin directory
@ -121,6 +125,8 @@ class Updater {
* Initialize Git Updater Lite * Initialize Git Updater Lite
* *
* @return void * @return void
* @noinspection PhpUndefinedFunctionInspection
* @noinspection PhpUndefinedClassInspection
*/ */
private function init_git_updater() { private function init_git_updater() {
// Check if the Git Updater Lite class exists (composer autoload) // Check if the Git Updater Lite class exists (composer autoload)