You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As recommended by the maintainer of PHP_CodeSniffer, we should not add the sniff to composer autoloading.
To be honest, for sniffs, you should generally not have a Composer autoload directive, but should let PHPCS handle the autoloading as the autoloading is integral to how PHPCS translates paths vs class names vs sniff codes.
If you follow the naming conventions, this will all work fine. If you don't and Composer autoloads the file, chances are that the translation between class name vs sniff code in PHPCS will not work correctly, which brings all sorts of problems.
As recommended by the maintainer of PHP_CodeSniffer, we should not add the sniff to
composer
autoloading.Originally posted by @jrfnl in #857 (comment)
The text was updated successfully, but these errors were encountered: