Skip to content

Commit 23fe646

Browse files
authored
Merge pull request #423 from ernilambar/fix-command-method-visibility
Fix visibility in command class methods
2 parents 617e9c5 + ae73b80 commit 23fe646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ private function parse_url_host_component( $url, $component ) {
825825
*
826826
* @return array{ name: string, url: string }|\WP_Error
827827
*/
828-
public function get_the_latest_github_version( $repo_slug ) {
828+
protected function get_the_latest_github_version( $repo_slug ) {
829829
$api_url = sprintf( $this->github_releases_api_endpoint, $repo_slug );
830830
$token = getenv( 'GITHUB_TOKEN' );
831831

@@ -886,7 +886,7 @@ private function get_asset_url_from_release( $release ) {
886886
*
887887
* @return string|null
888888
*/
889-
public function get_github_repo_from_releases_url( $url ) {
889+
protected function get_github_repo_from_releases_url( $url ) {
890890
preg_match( $this->github_latest_release_url, $url, $matches );
891891

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

0 commit comments

Comments
 (0)