From c4b1ef0bc80533d87a2e969806172f1c2a980241 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 22 Dec 2023 16:42:54 +0000 Subject: [PATCH] Suppress warnings from is_executable --- ExecutableFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExecutableFinder.php b/ExecutableFinder.php index 3681e356..412723a9 100644 --- a/ExecutableFinder.php +++ b/ExecutableFinder.php @@ -73,7 +73,7 @@ public function find(string $name, string $default = null, array $extraDirs = [] } $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v'; - 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)) { return $executablePath; }