[self::T_NS_SEPARATOR, self::T_STRING],
$token = array_pop($tokens)
)) {
+ if (self::needCompleteClass($token)) {
+ continue;
+ }
+
$class = $token[1] . $class;
}
return strpos(self::MISC_OPERATORS, $token) !== false;
}
+ public static function needCompleteClass($token)
+ {
+ return in_array($token[1], ['doc', 'ls', 'show']);
+ }
+
/**
* Check whether $token type is present in $coll.
*