Skip to content

Commit 95dd953

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Messenger] Fix using negative delay [Validator] Add missing italian translation [Validator] Fix using known option names as field names [SecurityBundle] Prevent to login/logout without a request context Suppress warnings from is_executable Fix expected return type
2 parents 2189ce9 + acd3eb5 commit 95dd953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function find(string $name, string $default = null, array $extraDirs = []
6969
}
7070

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

0 commit comments

Comments
 (0)