yaegassy / coc-intelephense

intelephense (PHP language server) extension for coc.nvim. intelephense’s various LSP features and this extension's additional features are available.
https://www.npmjs.com/package/@yaegassy/coc-intelephense
MIT License
98 stars 4 forks source link

intelephense.diagnostics.typeErrors does not appear to work #59

Open esetnik opened 1 year ago

esetnik commented 1 year ago

intelephense.diagnostics.typeErrors: Enables diagnostics on type compatibility of arguments, property assignments, and return statements where types have been declared, default: true

In the following sample code no diagnostic error is generated:

    public function test(string $arg): int
    {
        return 'test';
    }
yaegassy commented 1 year ago

Hi, I have confirmed it. it will be reproduced. It seems to be a problem on the language server side.

Related issue: https://github.com/bmewburn/vscode-intelephense/issues/2389