Skip to content

Commit 776a9e9

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: fix Redis proxies tests [VarDumper] Fix missing colors initialization in CliDumper [SecurityBundle] Add missing removed config options to upgrade guide [VarDumper] Fixes `Typed property Symfony\Component\VarDumper\Dumper\CliDumper::$colors must not be accessed before initialization` [Process] Fix executable finder when the command starts with a dash [Validator] added reviewed Lithuanian and Dutch translations simplify the parser factory creation
2 parents 80826a9 + 31ce4a4 commit 776a9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhpExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function find(bool $includeArgs = true): string|false
3333
{
3434
if ($php = getenv('PHP_BINARY')) {
3535
if (!is_executable($php)) {
36-
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
36+
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
3737
if (\function_exists('exec') && $php = strtok(exec($command.' '.escapeshellarg($php)), \PHP_EOL)) {
3838
if (!is_executable($php)) {
3939
return false;

0 commit comments

Comments
 (0)