diff --git a/src/Psalm/Codebase.php b/src/Psalm/Codebase.php
index <HASH>..<HASH> 100644
--- a/src/Psalm/Codebase.php
+++ b/src/Psalm/Codebase.php
@@ -1170,10 +1170,6 @@ class Codebase
                     break;
                 }
             }
-
-            if ($offset - $end_pos > 3) {
-                break;
-            }
         }
 
         if (!$recent_type
diff --git a/tests/LanguageServer/CompletionTest.php b/tests/LanguageServer/CompletionTest.php
index <HASH>..<HASH> 100644
--- a/tests/LanguageServer/CompletionTest.php
+++ b/tests/LanguageServer/CompletionTest.php
@@ -621,8 +621,6 @@ class CompletionTest extends \Psalm\Tests\TestCase
         $codebase->scanFiles();
 
         $this->analyzeFile('somefile.php', new Context());
-        $this->markTestSkipped();
-
         $this->assertSame(['B\Collection', '->'], $codebase->getCompletionDataAtPosition('somefile.php', new Position(10, 61)));
     }
 }
Fix problem locating end of completion area