We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8198205 commit 465183bCopy full SHA for 465183b
src/Settings.php
@@ -145,6 +145,11 @@ public static function parseArguments(array $arguments)
145
$arguments = new ArrayIterator(array_slice($arguments, 1));
146
$settings = new self;
147
148
+ // Use the currently invoked php as the default if possible
149
+ if (defined('PHP_BINARY')) {
150
+ $settings->phpExecutable = PHP_BINARY;
151
+ }
152
+
153
foreach ($arguments as $argument) {
154
if ($argument{0} !== '-') {
155
$settings->paths[] = $argument;
0 commit comments