Skip to content

Commit 4b13d6c

Browse files
committed
Apply suggestions
1 parent dfc1742 commit 4b13d6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WP_CLI/ExtensionUpgraderSkin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* An Upgrader Skin for extensions (plugins/themes) that displays which item is being updated
99
*
1010
* @package wp-cli
11+
*
12+
* @property-read array{Name?: string}|null $plugin_info
13+
* @property-read \WP_Theme|null $theme_info
1114
*/
1215
class ExtensionUpgraderSkin extends UpgraderSkin {
1316

@@ -16,11 +19,8 @@ class ExtensionUpgraderSkin extends UpgraderSkin {
1619
*/
1720
public function before() {
1821
// These properties are defined in `Bulk_Plugin_Upgrader_Skin`/`Bulk_Theme_Upgrader_Skin`
19-
// @phpstan-ignore property.notFound
2022
if ( isset( $this->plugin_info ) && is_array( $this->plugin_info ) && isset( $this->plugin_info['Name'] ) ) {
21-
// @phpstan-ignore argument.type
2223
WP_CLI::log( sprintf( 'Updating %s...', html_entity_decode( $this->plugin_info['Name'], ENT_QUOTES, get_bloginfo( 'charset' ) ) ) );
23-
// @phpstan-ignore property.notFound
2424
} elseif ( isset( $this->theme_info ) && is_object( $this->theme_info ) && method_exists( $this->theme_info, 'get' ) ) {
2525
WP_CLI::log( sprintf( 'Updating %s...', html_entity_decode( $this->theme_info->get( 'Name' ), ENT_QUOTES, get_bloginfo( 'charset' ) ) ) );
2626
}

0 commit comments

Comments
 (0)