aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Unable to use the standard #103

Closed girishkc closed 6 years ago

girishkc commented 6 years ago

I am not able to use the standard. Keep getting the error message: phpcs: PHP Fatal error: Uncaught Error: Class 'PHP_CodeSniffer_Exception' not found

aik099 commented 6 years ago

This coding standard can only be used with PHP_CodeSniffer 1.x/2.x version.

You're likely using latest PHP_CodeSniffer 3.x version where every class was renamed to make use of PHP namespaces. I'd like to update standard to 3.x version of PHP_CodeSniffer, but I'm short on time.

girishkc commented 6 years ago

Thanks for the quick replay. My apologies... I did not noticed it..

aik099 commented 6 years ago

Actually I haven't written in docs about this. I'll update the README.