Updated from some -dev modules to alpha, beta or full releases
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / AbstractMatcher.php
index a9a093fca3493c5728e0ab2aa6680db6495e4963..efa9e57e49c44178d71211eba44b55894dd0a622 100644 (file)
@@ -86,6 +86,10 @@ abstract class AbstractMatcher
             [self::T_NS_SEPARATOR, self::T_STRING],
             $token = array_pop($tokens)
         )) {
+            if (self::needCompleteClass($token)) {
+                continue;
+            }
+
             $class = $token[1] . $class;
         }
 
@@ -167,6 +171,11 @@ abstract class AbstractMatcher
         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.
      *