Skip to content

Commit ef909ca

Browse files
Merge branch '7.0' into 7.1
* 7.0: [DependencyInjection] Fix computing error messages involving service locators [Serializer] Fix unknown types normalization type when know type [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3 [AssetMapper] Fix enquoted string pattern [Validator] Review Romanian (ro) translations [Console] Fix display of Table on Windows OS [FrameworkBundle] Fix config builder with extensions extended in `build()` [Translation] Fix extracting qualified t() function calls Fix vertical table on windows Fix the `command -v` exception when the command option with a dash prefix Fix a minor design issue in the Welcome Page [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching explicitly cast boolean SSL stream options return the unchanged text if preg_replace_callback() fails the 'use_notify' option is on the factory, not on the postgres connection class review translations
2 parents 67f5d2d + 0e77271 commit ef909ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ExecutableFinder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function find(string $name, ?string $default = null, array $extraDirs = [
6868
}
6969
}
7070

71-
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
71+
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
7272
if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) {
7373
return $executablePath;
7474
}

0 commit comments

Comments
 (0)