Skip to content

Commit c54ca95

Browse files
authored
Fix newly reported PHPStan errors (#539)
1 parent 9f14270 commit c54ca95

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/Plugin_Download_Command.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function __invoke( $args, $assoc_args ) {
7070
WP_CLI::error( "The '{$slug}' plugin could not be found." );
7171
}
7272

73+
/** @var array{download_link: string, version: string} $plugin_data */
7374
$download_url = $plugin_data['download_link'];
7475
$version = $plugin_data['version'];
7576

‎src/Theme_Download_Command.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function __invoke( $args, $assoc_args ) {
7070
WP_CLI::error( "The '{$slug}' theme could not be found." );
7171
}
7272

73+
/** @var array{download_link: string, version: string} $theme_data */
7374
$download_url = $theme_data['download_link'];
7475
$version = $theme_data['version'];
7576

0 commit comments

Comments
 (0)