define constant only if it wasn't defined before
This commit is contained in:
parent
efbf588ed0
commit
388229b55c
@ -11,10 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\ClassLoader;
|
namespace Symfony\Component\ClassLoader;
|
||||||
|
|
||||||
if (PHP_VERSION_ID >= 50400) {
|
if (!defined('SYMFONY_TRAIT')) {
|
||||||
define('SYMFONY_TRAIT', T_TRAIT);
|
if (PHP_VERSION_ID >= 50400) {
|
||||||
} else {
|
define('SYMFONY_TRAIT', T_TRAIT);
|
||||||
define('SYMFONY_TRAIT', 0);
|
} else {
|
||||||
|
define('SYMFONY_TRAIT', 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user