8000 [Process] minor fix · symfony/symfony@f5fd55a · GitHub
[go: up one dir, main page]

Skip to content

Commit f5fd55a

Browse files
[Process] minor fix
1 parent 796fff2 commit f5fd55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/ExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function find(string $name, ?string $default = null, array $extraDirs = [
7171
}
7272

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

0 commit comments

Comments
 (0)
0