diff --git a/src/Plugin_Download_Command.php b/src/Plugin_Download_Command.php index b3ccb8e5..b1ad1939 100644 --- a/src/Plugin_Download_Command.php +++ b/src/Plugin_Download_Command.php @@ -70,6 +70,7 @@ public function __invoke( $args, $assoc_args ) { WP_CLI::error( "The '{$slug}' plugin could not be found." ); } + /** @var array{download_link: string, version: string} $plugin_data */ $download_url = $plugin_data['download_link']; $version = $plugin_data['version']; diff --git a/src/Theme_Download_Command.php b/src/Theme_Download_Command.php index 4d4d5870..91e6a3b1 100644 --- a/src/Theme_Download_Command.php +++ b/src/Theme_Download_Command.php @@ -70,6 +70,7 @@ public function __invoke( $args, $assoc_args ) { WP_CLI::error( "The '{$slug}' theme could not be found." ); } + /** @var array{download_link: string, version: string} $theme_data */ $download_url = $theme_data['download_link']; $version = $theme_data['version'];