Browse Source

Merge pull request #2892 from ptarjan/patch-1

use HHVM_VERSION
Nils Adermann 11 years ago
parent
commit
f479db6934
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Composer/Repository/PlatformRepository.php

+ 3 - 3
src/Composer/Repository/PlatformRepository.php

@@ -146,12 +146,12 @@ class PlatformRepository extends ArrayRepository
             parent::addPackage($lib);
         }
 
-        if (defined('HPHP_VERSION')) {
+        if (defined('HHVM_VERSION')) {
             try {
-                $prettyVersion = HPHP_VERSION;
+                $prettyVersion = HHVM_VERSION;
                 $version = $versionParser->normalize($prettyVersion);
             } catch (\UnexpectedValueException $e) {
-                $prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', HPHP_VERSION);
+                $prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', HHVM_VERSION);
                 $version = $versionParser->normalize($prettyVersion);
             }