Skip to content

Commit

Permalink
Use the right php binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Feldmann committed May 26, 2021
1 parent 910ef7e commit 17b7fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Captain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 17b7fb6

Please sign in to comment.