File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,12 @@ public function run(Settings $settings = null)
38
38
$ settings = $ settings ?: new Settings ();
39
39
$ output = $ this ->output ?: $ this ->getDefaultOutput ($ settings );
40
40
41
- $ phpExecutable = PhpExecutable::getPhpExecutable (escapeshellarg ($ settings ->phpExecutable ));
41
+ $ settingsPhpExecutable = escapeshellarg ($ settings ->phpExecutable );
42
+ if (stripos (PHP_OS , 'WIN ' ) === 0 ) {
43
+ $ settingsPhpExecutable = preg_replace ('`(?<!^) ` ' , '^ ' , escapeshellcmd ($ settings ->phpExecutable ));
44
+ }
45
+
46
+ $ phpExecutable = PhpExecutable::getPhpExecutable ($ settingsPhpExecutable );
42
47
$ olderThanPhp54 = $ phpExecutable ->getVersionId () < 50400 ; // From PHP version 5.4 are tokens translated by default
43
48
$ translateTokens = $ phpExecutable ->isIsHhvmType () || $ olderThanPhp54 ;
44
49
You can’t perform that action at this time.
0 commit comments