Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Use the current invoked version of PHP (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 authored and JakubOnderka committed Sep 29, 2018
1 parent 8198205 commit 465183b
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 465183b

Please sign in to comment.