My TestMyClass.php
has two class definitions in the same file (unit testing class), and PHP Code Sniffer complains about each class must be in a file by itself<
Altho I like the top answer though I'd also suggest this one if you don't care about specific files.
Run this command:
phpcs --config-set show_warnings 0
as seen here: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options#hiding-warnings-by-default
A note about setting configs this way is they will get wiped out if you delete the vendor folder or update the library and you will have to set them again.