Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / class-loader / ClassMapGenerator.php
index a35c90ca10d8b6772701395a50bd3c7613398e93..baeb4c1abad42dd74996c9c3556f575ee9d8bc69 100644 (file)
 
 namespace Symfony\Component\ClassLoader;
 
-if (!defined('SYMFONY_TRAIT')) {
-    if (\PHP_VERSION_ID >= 50400) {
-        define('SYMFONY_TRAIT', T_TRAIT);
-    } else {
-        define('SYMFONY_TRAIT', 0);
-    }
-}
-
 /**
  * ClassMapGenerator.
  *
@@ -122,7 +114,7 @@ class ClassMapGenerator
                     break;
                 case T_CLASS:
                 case T_INTERFACE:
-                case SYMFONY_TRAIT:
+                case T_TRAIT:
                     // Skip usage of ::class constant
                     $isClassConstant = false;
                     for ($j = $i - 1; $j > 0; --$j) {