Add Phan's language server implementation for PHP (Diagnostics only)
See https://github.com/phan/phan/wiki/Editor-Support#editors-with-phan-support
The only language server feature this provides is diagnostics, but this catches a wide range of issues with low false positive rates.
It has a mode that is reasonably fast at analyzing a small subset of files from a large project.
(And it is aware of definitions function/class/const/etc from the entire project; it requires that the files and folders of the project be specified in .phan/config.php).
This works with language clients written for VSCode and phan, and should work for others.
-
https://github.com/tysonandre/vscode-php-phan#examples (or - https://github.com/tysonandre/LanguageServer-phan-neovim#examples)
-
Earlier versions had a hard dependency on
pcntl. This now has a fallback to allow it to work even without pcntl (so it should work on windows as well now).
