Open TravisCarden opened 1 year ago
Hmm interesting. The dump autoload changes files, which might not be the wanted scenario here. Maybe it could make sense for composer to add this check to the validation command somehow?
^ I've proposed a dumpautoload --dry-run
option. 🙂
Update: The above-proposed dumpautoload --dry-run
option has been committed upstream and is scheduled for release in Composer 2.6.
v1.16.0
I just discovered that
composer validate
will pass even if there are PSR-4 problems. That's not the fault of GrumPHP, but it may be misleading.Steps to reproduce/Result: Given a Composer project with PSR-4 configured and GrumPHP installed, just put a class file in the wrong directory and...
Proposal: Either add a new task (or an option to the existing
composer
task), to usecomposer dumpautoload
to check PSR-4 violations.