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 1934b2e commit f72945fCopy full SHA for f72945f
src/Symfony/Component/Process/ExecutableFinder.php
@@ -73,7 +73,7 @@ public function find(string $name, string $default = null, array $extraDirs = []
73
}
74
75
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
76
- if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && is_executable($executablePath)) {
+ if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) {
77
return $executablePath;
78
79
0 commit comments