Giter Site home page Giter Site logo

Comments (7)

zlianon avatar zlianon commented on June 18, 2024 1

@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

Part of my coc-config

{ "coc.preferences.diagnostic.enable": false }

Part of my ale configuration

let g:ale_linters = {
    \ 'php': ['phpstan']
    \ }

Sorry for my bad English! I hope I helped :)

from coc-phpls.

marlonfan avatar marlonfan commented on June 18, 2024 1

@mihaelartz I understand,in my opinion, that intelphine is an LSP, but it does not implement this aspect of the feature.

from coc-phpls.

robbash avatar robbash commented on June 18, 2024 1

@mihaelartz thanks a lot. It's checking the files now. Cheers!

from coc-phpls.

marlonfan avatar marlonfan commented on June 18, 2024

This is a bug, I will check the cause and fix it as soon as possible

from coc-phpls.

robbash avatar robbash commented on June 18, 2024

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.

from coc-phpls.

zlianon avatar zlianon commented on June 18, 2024

@robbash

  1. Install PHPStan with composer: composer global require --dev phpstan/phpstan
  2. If you want configure PHPStan, create new file in your project root with name phpstan.neon.dist and put your configuration in that file. (OPTIONAL)

And that's it :)

from coc-phpls.

yaegassy avatar yaegassy commented on June 18, 2024

@marlonfan @robbash @m5ome

phpstan is now supported in coc-diagnostic.

https://github.com/iamcco/coc-diagnostic

from coc-phpls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.