Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.
Merged
Changes from all commits
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
5 changes: 5 additions & 0 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public static function parseArguments(array $arguments)
$arguments = new ArrayIterator(array_slice($arguments, 1));
$settings = new self;

// Use the currently invoked php as the default if possible
if (defined('PHP_BINARY')) {
$settings->phpExecutable = PHP_BINARY;
}

foreach ($arguments as $argument) {
if ($argument{0} !== '-') {
$settings->paths[] = $argument;
Expand Down