Use HHVM_VERSION instead of HPHP_VERSION
parent
33ea86573e
commit
cb1ea889d6
|
@ -114,7 +114,7 @@ class ClassMapGenerator
|
|||
{
|
||||
$traits = version_compare(PHP_VERSION, '5.4', '<') ? '' : '|trait';
|
||||
$enums = '';
|
||||
if (defined('HPHP_VERSION') && version_compare(HPHP_VERSION, '3.3', '>=')) {
|
||||
if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.3', '>=')) {
|
||||
$enums = '|enum';
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
|||
'Foo\\CBar' => __DIR__.'/Fixtures/php5.4/traits.php',
|
||||
));
|
||||
}
|
||||
if (defined('HPHP_VERSION') && version_compare(HPHP_VERSION, '3.3', '>=')) {
|
||||
if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.3', '>=')) {
|
||||
$data[] = array(__DIR__.'/Fixtures/hhvm3.3', array(
|
||||
'FooEnum' => __DIR__.'/Fixtures/hhvm3.3/HackEnum.php',
|
||||
'Foo\BarEnum' => __DIR__.'/Fixtures/hhvm3.3/NamespacedHackEnum.php',
|
||||
|
|
Loading…
Reference in New Issue