felixfbecker / php-language-server

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

Invalid syntax error #574

Open sharifzadesina opened 6 years ago

sharifzadesina commented 6 years ago

Hi This code has a valid syntax but the language server recognizes it as invalid:

final public static function __callStatic($method, array $params)
{
    return self::$extensions[$method]->bindTo(null, static::class)(...$params);
}
smuuf commented 6 years ago

I think this is directly linked to Is it possible to hide errors coming from imperfect tolerant-php-parser? #633.

sunverwerth commented 6 years ago

@sharifzadesina Can you post the error message?

felixfbecker commented 6 years ago

Please file this on https://github.com/Microsoft/tolerant-php-parser