diff --git a/src/Symfony/Component/ClassLoader/ClassMapGenerator.php b/src/Symfony/Component/ClassLoader/ClassMapGenerator.php index 12ef1e330b..c0e9fc6d50 100644 --- a/src/Symfony/Component/ClassLoader/ClassMapGenerator.php +++ b/src/Symfony/Component/ClassLoader/ClassMapGenerator.php @@ -84,7 +84,7 @@ class ClassMapGenerator { $contents = file_get_contents($path); $tokens = token_get_all($contents); - $T_TRAIT = version_compare(PHP_VERSION, '5.4.0RC1', '<') ? -1 : T_TRAIT; + $T_TRAIT = version_compare(PHP_VERSION, '5.4', '<') ? -1 : T_TRAIT; $classes = array(); diff --git a/tests/Symfony/Tests/Component/ClassLoader/ClassMapGeneratorTest.php b/tests/Symfony/Tests/Component/ClassLoader/ClassMapGeneratorTest.php index f32a75d443..abb1c5eff0 100644 --- a/tests/Symfony/Tests/Component/ClassLoader/ClassMapGeneratorTest.php +++ b/tests/Symfony/Tests/Component/ClassLoader/ClassMapGeneratorTest.php @@ -56,7 +56,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase )), ); - if (version_compare(PHP_VERSION, '5.4.0RC1', '>=')) { + if (version_compare(PHP_VERSION, '5.4', '>=')) { $data[] = array(__DIR__.'/Fixtures/php5.4', array( 'TFoo' => __DIR__.'/Fixtures/php5.4/traits.php', 'CFoo' => __DIR__.'/Fixtures/php5.4/traits.php',