mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Avoid checking for hhvm in a loop, refs #10170
This commit is contained in:
parent
a6f1e803b1
commit
04ab74bbef
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue