![]() ![]() You can find more information about it in official documentation: So, you must have install your dependencies using composer install -prefer-source (or composer update -prefer-source as it's the other command with that option) and you want to use -prefer-dist or actually not using any of these flags as the latter is the default. but excluded from being exported to distribution (the archive file you are actually downloading from GitHub when installing package): - you can see that it's not present in file you download from.the file obviously is in the repository:.Let's use sebastian/code-unit as an example to see how it works: These files are in your vendor directory as you must have install your dependencies from sources, not distributions. PhpStorm ignored files (adding php-cs-fixer and phploc here somehow removed all/multiple copies from the vendor directories): "Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/" "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/", ![]() "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/", "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/", "Magento\\Tools\\": "dev/tools/Magento/Tools/", "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/", "app/etc/NonComposerComponentRegistration.php", "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/" "Magento\\Setup\\": "setup/src/Magento/Setup/", "Magento\\Framework\\": "lib/internal/Magento/Framework/", "phpcompatibility/php-compatibility": "^9.3", "magento/magento2-functional-testing-framework": "^3.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", "magento/product-community-edition": "2.4.1" "magento/composer-root-update-plugin": "~1.0", "description": "eCommerce Platform for Growth (Community Edition)", "name": "magento/project-community-edition", However, it makes no sense the IDE would generate them and in turn include them hinting code. I tried ignoring these files in PhpStorm one by one, and once re-indexing finishes, these files disappear, leading me to believe they're IDE-generated files. They are all huge compiled files that PhpStorm detects. I found that there are multiple copies of several other files named phploc, composer, php-scoper, etc., under vendor/library_name/tools/ in various libraries for some reason. I keep getting "Multiple definitions exist for class." warnings in PhpStorm, and upon inspection, I see these a bunch of these huge php-cs-fixer files (100K lines) with the comment "This file is part of PHP CS Fixer.". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |