felixfbecker / php-language-server

PHP Implementation of the VS Code Language Server Protocol 🆚↔🖥
ISC License
1.15k stars 185 forks source link

$this not resolved correctly #195

Open mniewrzal opened 7 years ago

mniewrzal commented 7 years ago

No completion in this case:

<?php
class TestClass 
{
    function abc(){
        $this->
    }
}

If at least one letter will be added then completion will work.

felixfbecker commented 7 years ago

What about these test cases? https://github.com/felixfbecker/php-language-server/blob/master/fixtures/completion/static.php https://github.com/felixfbecker/php-language-server/blob/master/fixtures/completion/property.php

The first one is probably related to $this

mniewrzal commented 7 years ago

You are right. Only case with $this is broken (I didn't have latest version of php-parser).

felixfbecker commented 5 years ago

Still happening?