The bundled PUC was missing the setBranch() method on the main UpdateChecker class (it's only on Vcs\PluginUpdateChecker via the VcsCheckerMethods trait). When called with a non-VCS URL like the Gitea update URL, this caused a fatal error at plugin activation. Updating to PUC v5.7 (May 2026) which is the latest upstream release. The setBranch() call is removed because PUC doesn't recognize Gitea as a VCS host; the plugin falls back to PUC's plain JSON metadata mode, which is fine for a plugin hosted on a self-managed repo.
30 lines
547 B
PHP
30 lines
547 B
PHP
<?php
|
|
namespace YahnisElsts\PluginUpdateChecker\v5p7\Vcs;
|
|
|
|
if ( !interface_exists(BaseChecker::class, false) ):
|
|
|
|
interface BaseChecker {
|
|
/**
|
|
* Set the repository branch to use for updates. Defaults to 'master'.
|
|
*
|
|
* @param string $branch
|
|
* @return $this
|
|
*/
|
|
public function setBranch($branch);
|
|
|
|
/**
|
|
* Set authentication credentials.
|
|
*
|
|
* @param array|string $credentials
|
|
* @return $this
|
|
*/
|
|
public function setAuthentication($credentials);
|
|
|
|
/**
|
|
* @return Api
|
|
*/
|
|
public function getVcsApi();
|
|
}
|
|
|
|
endif;
|