Skip to content

Commit 1fa06e0

Browse files
committed
Replace list() with array_shift() for fetching optional positional argument
1 parent 9bee85d commit 1fa06e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Core_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ public function download( $args, $assoc_args ) {
156156
$locale = Utils\get_flag_value( $assoc_args, 'locale', 'en_US' );
157157
$skip_content = Utils\get_flag_value( $assoc_args, 'skip-content' );
158158

159-
list( $download_url ) = $args;
160-
$from_url = ! empty( $download_url );
159+
$download_url = array_shift( $args );
160+
$from_url = ! empty( $download_url );
161161

162162
if ( $from_url ) {
163163
$version = null;

0 commit comments

Comments
 (0)