CodeIgniter Forums
composer settings and phpstorm - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: composer settings and phpstorm (/showthread.php?tid=88511)



composer settings and phpstorm - badger - 09-19-2023

Its very minor query and my project works fine but I'd like to sort it out once and for all so as to have everything correct. As an example, the file "siteapps/vendor/codeigniter4/shield/src/Authentication/Authentication.php" has a namespace of "CodeIgniter\Shield\Authentication". PhpStorm highlights it and says "Namespace name doesnt match the PSR-0/PSR-4 project structure" and suggests moving it to "vendor/Codeigniter/Shield/Authentication". The same warning applies to all the files under siteapps/vendor. Is there something I can change in the vendor/composer/... settings or the phpstorm settings to make this warning go away?
Thanks, Bill


RE: composer settings and phpstorm - kenjis - 09-19-2023

When I open "vendor/codeigniter4/shield/src/Authentication/Authentication.php" in PhpStorm,
I don't see no namespace warning.


RE: composer settings and phpstorm - badger - 09-20-2023

(09-19-2023, 02:03 PM)kenjis Wrote: When I open "vendor/codeigniter4/shield/src/Authentication/Authentication.php" in PhpStorm,
I don't see no namespace warning.

ok, i've obviously got something set up wrong but I'm not familiar enough with composer to know if the wrong setting is there or in phpstorm. I probably have phpstorm set up incorrectly because composer works fine as regards adding in new vendor items to the project. I'll ask on phpstorm forum.
thanks for the help
Bill