Skip to content

Commit

Permalink
Fix visibilty in command class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Apr 30, 2024
1 parent 617e9c5 commit 6679828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WP_CLI/CommandWithUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
private function get_the_latest_github_version( $repo_slug ) {
$api_url = sprintf( $this->github_releases_api_endpoint, $repo_slug );
$token = getenv( 'GITHUB_TOKEN' );

Expand Down Expand Up @@ -886,7 +886,7 @@ private function get_asset_url_from_release( $release ) {
*
* @return string|null
*/
public function get_github_repo_from_releases_url( $url ) {
private function get_github_repo_from_releases_url( $url ) {
preg_match( $this->github_latest_release_url, $url, $matches );

return isset( $matches[1] ) ? $matches[1] : null;
Expand Down

0 comments on commit 6679828

Please sign in to comment.