Phpstorm 8 ile Codesniffer kullanırken aldığım hata
Phpstorm 8 ile codesniffer kullanmak istediğimde aşağıdaki hatayı alıyordum. Emin arkadaşımın tavsiyesiyle şu düzenlemeyi yaptıktan sonra sorun kalmadı.
/usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php dosyasının 140. satırını bulup
foreach (array('extends', 'implements') as $keywordType) {
foreach (array('extends', 'IMPLEMENTS') as $keywordType) {
aldığım hatada buydu :
phpcs: PHP Warning:Â constant(): Couldn't find constant T_iMPLEMENTS in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 140
        PHP Stack trace:
        PHP  1. {main}() /usr/bin/phpcs:0
        PHP  2. PHP_CodeSniffer_CLI->process() /usr/bin/phpcs:37
        PHP  3. PHP_CodeSniffer->process() /usr/share/php/PHP/CodeSniffer/CLI.php:622
        PHP  4. PHP_CodeSniffer->processFile() /usr/share/php/PHP/CodeSniffer.php:488
        PHP  5. PHP_CodeSniffer->_processFile() /usr/share/php/PHP/CodeSniffer.php:1351
        Exclude SeoComponent.php from PHP Code Sniffer analysis.