Exclude PHPUnit / Rector from psr-4
fliespl opened this issue · 2 comments
fliespl commented
According to author it does not follow psr-4 so should it be defined in composer.json?
sebastianbergmann/phpunit#4168
Rendered warnings when used with ""optimize-autoloader": true," config.
fliespl commented
I would propose maybe adding them as such to autoload-dev? Not tested yet
"classmap": [
"tools/01_phpunit/vendor/phpunit/phpunit/src",
"tools/08_rector/vendor/rector/rector/src"
]
dimadeush commented
Please do not use optimize-autoloader for the dev environment, see recommendations here - https://getcomposer.org/doc/articles/autoloader-optimization.md#autoloader-optimization and pay your attention to the notes. Regarding classmap you can try but I'm not sure that it will help in your case.