File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
43
43
- Generic.Functions.FunctionCallArgumentSpacing now properly fixes multi-line function calls with leading commas
44
44
-- Previously, newlines between function arguments would be removed
45
45
-- Thanks to Juliette Reinders Folmer for the patch
46
+ - Generic.PHP.Syntax will now use PHP_BINARY instead of trying to discover the executable path
47
+ -- This ensures that the sniff will always syntax check files using the PHP version that PHPCS is running under
48
+ -- Setting the php_path config var will still override this value as normal
49
+ -- Thanks to Willem Stuursma-Ruwen for the patch
46
50
- PSR2.Namespaces.UseDeclaration now supports commas at the end of group use declarations
47
51
-- Also improves checking and fixing for use statements containing parse errors
48
52
-- Thanks to Juliette Reinders Folmer for the patch
Original file line number Diff line number Diff line change @@ -1517,10 +1517,7 @@ public static function getExecutablePath($name)
1517
1517
}
1518
1518
1519
1519
if ($ name === "php " ) {
1520
- /*
1521
- * For php, we know the executable path. There's no need to look it up.
1522
- */
1523
-
1520
+ // For php, we know the executable path. There's no need to look it up.
1524
1521
return PHP_BINARY ;
1525
1522
}
1526
1523
You can’t perform that action at this time.
0 commit comments