diff --git a/PHP/Reflect.php b/PHP/Reflect.php
index <HASH>..<HASH> 100644
--- a/PHP/Reflect.php
+++ b/PHP/Reflect.php
@@ -791,6 +791,7 @@ class PHP_Reflect implements ArrayAccess
                     $tokenName = 'T_TRAIT_C';
                 } elseif (strcasecmp($text, 'trait') == 0
                     && $trait === false
+                    && $this->tokens[$id - 1][0] != 'T_OBJECT_OPERATOR'
                 ) {
                     $tokenName = 'T_TRAIT';
                 } elseif (strcasecmp($text, 'insteadof') == 0) {
avoid wrong trait detection if source code used a class property named trait