Skip to content

Commit 5683379

Browse files
authored
Use short array syntax
1 parent 7545ff7 commit 5683379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WP_CLI/ParseThemeNameInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function get_all_themes() {
8989
$auto_updates = [];
9090
}
9191

92-
foreach ( wp_get_themes( array( 'errors' => null ) ) as $key => $theme ) {
92+
foreach ( wp_get_themes( [ 'errors' => null ] ) as $key => $theme ) {
9393
$stylesheet = $theme->get_stylesheet();
9494
$update_info = ( isset( $all_update_info->response[ $stylesheet ] ) && null !== $all_update_info->response[ $theme->get_stylesheet() ] ) ? (array) $all_update_info->response[ $theme->get_stylesheet() ] : null;
9595

0 commit comments

Comments
 (0)