Skip to content

Commit f72945f

Browse files
authored
Suppress warnings from is_executable
1 parent 1934b2e commit f72945f

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
@@ -73,7 +73,7 @@ public function find(string $name, string $default = null, array $extraDirs = []
7373
}
7474

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

0 commit comments

Comments
 (0)