Skip to content

Commit c7b1c85

Browse files
committed
Apply fixes from code review
1 parent 3d445c0 commit c7b1c85

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Core_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ private function get_updates( $assoc_args ) {
15621562
/**
15631563
* Sets or clears the version check error property based on an HTTP response.
15641564
*
1565-
* @param array|\WP_Error $response The HTTP response (WP_Error, array, or other).
1565+
* @param mixed|\WP_Error $response The HTTP response (WP_Error, array, or other).
15661566
*
15671567
* @phpstan-param HTTP_Response|WP_Error $response
15681568
*/

src/WP_CLI/Core/CoreUpgrader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ function () use ( $temp ) {
9393
}
9494
);
9595

96+
$cache = WP_CLI::get_cache();
97+
9698
/**
97-
* @var array{wpcli_core_update_obj: object{locale: string}} $GLOBALS
99+
* @var object{locale: string} $update
98100
*/
99-
100-
$cache = WP_CLI::get_cache();
101101
$update = $GLOBALS['wpcli_core_update_obj'];
102102
$cache_key = "core/{$filename}-{$update->locale}.{$extension}";
103103

0 commit comments

Comments
 (0)