Skip to content

Commit efea065

Browse files
committed
Fix according to review
1 parent 01e6038 commit efea065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/class-ee.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,13 @@ public static function error_to_string( $errors ) {
814814
*
815815
* @return int|ProcessRun The command exit status, or a ProcessRun object for full details.
816816
*/
817-
public static function launch( $command, $exit_on_error = true, $return_detailed = false, $env = array(), $cwd = null ) {
817+
public static function launch( $command, $exit_on_error = true, $return_detailed = false, $env = null, $cwd = null ) {
818818
Utils\check_proc_available( 'launch' );
819819

820820
$proc = Process::create( $command, $cwd, $env );
821821
$results = $proc->run();
822822

823-
if ( - 1 == $results->return_code ) {
823+
if ( -1 == $results->return_code ) {
824824
self::warning( "Spawned process returned exit code {$results->return_code}, which could be caused by a custom compiled version of PHP that uses the --enable-sigchild option." );
825825
}
826826

0 commit comments

Comments
 (0)