felixfbecker / php-language-server

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

Direct use of curried functions is considered an error #542

Open kilbiller opened 6 years ago

kilbiller commented 6 years ago

Hi,

First of all, thank you for doing this project. Whether I use atom or vscode my dev experience coding in php is much improved, so thank you for that.

I noticed that php-language-server didn't react to curried function very well, when calling the return of a curried function directly I get multiple errors such as:

Example code:

$hello = function () {
    return function () {
        return 'hello';
    };
};

$res = $hello()();
felixfbecker commented 6 years ago

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