composer global packages inspection

Hi!

I installed some composer(codeception) packages globally (~/.composer/vendor). The codeception tests work ok but PhpStorm underlines some code where meets namespaces/classes from global composer packages. How can I setup PhpStorm to make it "see" global composer packages?

Thank you!

5 comments
Comment actions Permalink

underlines = 'Undefined namespace' warning

0
Comment actions Permalink

Hi there,

You can add any external library/package at "Settings/Preferences | Languages & Frameworks | PHP --> Include path"

0
Comment actions Permalink

Have you installed it this way: https://www.youtube.com/watch?v=1yl9K-25qA0 ?

Can you share a code part/screenshot of an issue?

0
Comment actions Permalink

Andriy Bazanov, yes but I need to do it for each single package subdirectory, is not? Is there an universal way to make "known" all globally installed composer packages?

Dmitry Tronin, no, I installed it via console:

composer global require "codeception/codeception=2.0.*"

0
Comment actions Permalink

Andriy Bazanov, my mistake: just added one path ~/.composer/vendor and all ok, thnx

anyway I think it will better to determine global packages automatically

 

thank you!

0

Please sign in to leave a comment.