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