PhpStorm changes slashes way in Composer
Hello guys.
I tried to load my composer.json file with PhpStorm, and it's an error that appears:
[RuntimeException]
Could not scan for classes inside "C:\Users\Admin\Projects\_GitHub repos_\Website\vendor/symfony/polyfill-p
hp80/Resources/stubs" which does not appear to be a file nor a folder
I spotted that path before the vendor folder is divided with \ (backslash) and after the vendor -> with / (slash).
I am using Windows OS and PHP interpreter from XAMPP (with PHP 7.4.11).
Thanks for help in advance.
请先登录再写评论。
This error is shown by Composer itself rather than by PhpStorm, so there's something definitely wrong with your composer.json.
Please check this SO thread: https://stackoverflow.com/questions/20595801/how-to-fix-composer-error-could-not-scan-for-classes-inside-dir
If you don't see an answer there, please share your composer.json file.