Closed robbash closed 5 years ago
This is a bug, I will check the cause and fix it as soon as possible
@marlonfan This is not bug. For now, can't be reproduced.
@robbash Intelephense use own static analysis engine, and does not offer any option for solve your problem, for now. - Try this option, disable coc diagnostic, use ale or something else instead coc diagnostic, use PHPStan, allows you to configure, see https://github.com/phpstan/phpstan
{ "coc.preferences.diagnostic.enable": false }
let g:ale_linters = {
\ 'php': ['phpstan']
\ }
Sorry for my bad English! I hope I helped :)
@mihaelartz I understand,in my opinion, that intelphine is an LSP, but it does not implement this aspect of the feature.
Thanks, @mihaelartz.
Have the diagnostics disabled now, so all these warnings that were annoying me disappeared. Haven't managed to get ale/phpstan running yet but will work on that.
@robbash
composer global require --dev phpstan/phpstan
phpstan.neon.dist
and put your configuration in that file. (OPTIONAL)And that's it :)
@mihaelartz thanks a lot. It's checking the files now. Cheers!
@marlonfan @robbash @m5ome
phpstan
is now supported in coc-diagnostic
.
Hi.
Not sure if I'm right here but I feel like I need to start somewhere: I installed this extension to enable coc for PHP files. Due to the nature of the project, there are a few unused private static properties in the classes. Is there a way, to configure what to warn or show errors about?
Thanks in advance, appreciate the effort you take.