File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,26 +97,26 @@ public function __invoke( $_, $assoc_args ) {
9797 if ( ! file_exists ( $ router_path ) ) {
9898 WP_CLI ::error ( "Couldn't find router.php " );
9999 }
100-
100+
101101 // Build the command with passthrough arguments
102102 $ cmd_format = '%s ' ;
103103 $ cmd_args = array ( WP_CLI ::get_php_binary () );
104-
104+
105105 // Add passthrough arguments before the -S flag
106106 if ( ! empty ( $ _ ) ) {
107107 foreach ( $ _ as $ arg ) {
108108 $ cmd_format .= ' %s ' ;
109109 $ cmd_args [] = $ arg ;
110110 }
111111 }
112-
112+
113113 // Add the server flags
114114 $ cmd_format .= ' -S %s -t %s -c %s %s ' ;
115115 $ cmd_args [] = $ assoc_args ['host ' ] . ': ' . $ assoc_args ['port ' ];
116116 $ cmd_args [] = $ docroot ;
117117 $ cmd_args [] = $ assoc_args ['config ' ];
118118 $ cmd_args [] = Utils \extract_from_phar ( $ router_path );
119-
119+
120120 $ cmd = Utils \esc_cmd ( $ cmd_format , ...$ cmd_args );
121121
122122 $ descriptors = array ( STDIN , STDOUT , STDERR );
You can’t perform that action at this time.
0 commit comments