diff --git a/src/Captain.php b/src/Captain.php index 4922332..e24a70d 100644 --- a/src/Captain.php +++ b/src/Captain.php @@ -67,7 +67,9 @@ public function execute(string $command, IOInterface $io) $executable = str_replace(' ', '\\ ', $this->executable); // sub process settings - $cmd = $executable . ' ' . $command . $ansi . $interaction . $skip . $configuration . $repository; + $cmd = PHP_BINARY . ' ' . $executable . ' ' . $command + . $ansi . $interaction . $skip + . $configuration . $repository; $pipes = []; $spec = [ 0 => ['file', 'php://stdin', 'r'],