From ae73b8079f9b6dbf58b2b1a36f6aee0fc85a5e3e Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Tue, 30 Apr 2024 11:09:29 +0545 Subject: [PATCH] Fix visibilty in command class methods --- src/WP_CLI/CommandWithUpgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WP_CLI/CommandWithUpgrade.php b/src/WP_CLI/CommandWithUpgrade.php index 0549e5486..9072de576 100755 --- a/src/WP_CLI/CommandWithUpgrade.php +++ b/src/WP_CLI/CommandWithUpgrade.php @@ -825,7 +825,7 @@ private function parse_url_host_component( $url, $component ) { * * @return array{ name: string, url: string }|\WP_Error */ - public function get_the_latest_github_version( $repo_slug ) { + protected function get_the_latest_github_version( $repo_slug ) { $api_url = sprintf( $this->github_releases_api_endpoint, $repo_slug ); $token = getenv( 'GITHUB_TOKEN' ); @@ -886,7 +886,7 @@ private function get_asset_url_from_release( $release ) { * * @return string|null */ - public function get_github_repo_from_releases_url( $url ) { + protected function get_github_repo_from_releases_url( $url ) { preg_match( $this->github_latest_release_url, $url, $matches ); return isset( $matches[1] ) ? $matches[1] : null;