Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Server_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ public function __invoke( $args, $assoc_args ) {
// Add the server flags
$cmd_format .= ' -S %s -t %s -c %s %s';
$cmd_args[] = $assoc_args['host'] . ':' . $assoc_args['port'];
$cmd_args[] = $docroot;
$cmd_args[] = $assoc_args['config'];
$cmd_args[] = (string) $docroot;
$cmd_args[] = is_string( $assoc_args['config'] ) ? $assoc_args['config'] : '';
$cmd_args[] = Utils\extract_from_phar( $router_path );
Comment thread
swissspidy marked this conversation as resolved.
Resolved

$cmd = Utils\esc_cmd( $cmd_format, ...$cmd_args );

$descriptors = array( STDIN, STDOUT, STDERR );

if ( Utils\get_flag_value( $assoc_args, 'adapt-scheme', false ) ) { // @phpstan-ignore argument.type
if ( Utils\get_flag_value( $assoc_args, 'adapt-scheme', false ) ) {
putenv( 'WPCLI_SERVER_ADAPT_SCHEME=1' );
}

Expand Down
Loading