From 04ab74bbefacb23f5267c352e01b31f7c96eb980 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 18 Oct 2021 10:51:16 +0200 Subject: [PATCH] Avoid checking for hhvm in a loop, refs #10170 --- src/Composer/Platform/HhvmDetector.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Platform/HhvmDetector.php b/src/Composer/Platform/HhvmDetector.php index 3352854a5..7fee999a6 100644 --- a/src/Composer/Platform/HhvmDetector.php +++ b/src/Composer/Platform/HhvmDetector.php @@ -50,6 +50,7 @@ class HhvmDetector self::$hhvmVersion = defined('HHVM_VERSION') ? HHVM_VERSION : null; if (self::$hhvmVersion === null && !Platform::isWindows()) { + self::$hhvmVersion = false; $this->executableFinder = $this->executableFinder ?: new ExecutableFinder(); $hhvmPath = $this->executableFinder->find('hhvm'); if ($hhvmPath !== null) {