Skip to content

Commit 57c87df

Browse files
authored
Fix newly reported PHPStan errors (#159)
1 parent 5182844 commit 57c87df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/Checksum_Plugin_Command.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ private function fetch_version_from_wp_org( $plugin_slug ) {
294294
return false;
295295
}
296296

297+
/** @var array{version: string} $plugin_data */
297298
$version = $plugin_data['version'];
298299
WP_CLI::warning( "Could not determine the version of plugin {$plugin_slug} from its files. Assuming the current stable version ({$version}) from WordPress.org." );
299300

0 commit comments

Comments
 (0)