Browse Source

Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138

Jordi Boggiano 5 years ago
parent
commit
088fb56c3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/DependencyResolver/Problem.php

+ 1 - 1
src/Composer/DependencyResolver/Problem.php

@@ -106,7 +106,7 @@ class Problem
 
                     $msg = "\n    - This package requires ".$job['packageName'].$this->constraintToText($job['constraint']).' but ';
 
-                    if (defined('HHVM_VERSION') || count($available)) {
+                    if (defined('HHVM_VERSION') || (count($available) && $job['packageName'] === 'hhvm')) {
                         return $msg . 'your HHVM version does not satisfy that requirement.';
                     }