Error on completion with lsp-mode

What happened?

I’m using lsp-mode, with intelephense language server, to edit PHP files. When completion is triggered directly “under” the class statement an error is triggered.

Example snippet:

class Test 
{
    fun_            // cursor is the _
}

Triggers:


Loading data dump...

What did you expect to happen?

Company popup should appear with completion candidates.

Steps to reproduce

  1. Enable :lang php +lsp and install intelephense language server
  2. Open a .php file and trigger completion on a snippet similar to the one described above

System information


Loading data dump...