Skip to content

Commit

Permalink
define constant only if it wasn't defined before
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 29, 2014
1 parent efbf588 commit 388229b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Symfony/Component/ClassLoader/ClassMapGenerator.php
Expand Up @@ -11,10 +11,12 @@

namespace Symfony\Component\ClassLoader;

if (PHP_VERSION_ID >= 50400) {
define('SYMFONY_TRAIT', T_TRAIT);
} else {
define('SYMFONY_TRAIT', 0);
if (!defined('SYMFONY_TRAIT')) {
if (PHP_VERSION_ID >= 50400) {
define('SYMFONY_TRAIT', T_TRAIT);
} else {
define('SYMFONY_TRAIT', 0);
}
}

/**
Expand Down

0 comments on commit 388229b

Please sign in to comment.