8000 [ClassLoader] Fixed version compare · symfony/symfony@1ec075d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ec075d

Browse files
committed
[ClassLoader] Fixed version compare
1 parent 8fb529c commit 1ec075d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/ClassLoader/ClassMapGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static private function findClasses($path)
8484
{
8585
$contents = file_get_contents($path);
8686
$tokens = token_get_all($contents);
87-
$T_TRAIT = version_compare(PHP_VERSION, '5.4.0RC1', '<') ? -1 : T_TRAIT;
87+
$T_TRAIT = version_compare(PHP_VERSION, '5.4', '<') ? -1 : T_TRAIT;
8888

8989
$classes = array();
9090

tests/Symfony/Tests/Component/ClassLoader/ClassMapGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getTestCreateMapTests()
5656
)),
5757
);
5858

59-
if (version_compare(PHP_VERSION, '5.4.0RC1', '>=')) {
59+
if (version_compare(PHP_VERSION, '5.4', '>=')) {
6060
$data[] = array(__DIR__.'/Fixtures/php5.4', array(
6161
'TFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
6262
'CFoo' => __DIR__.'/Fixtures/php5.4/traits.php',

0 commit comments

Comments
 (0)
0