Open roberto-ebizmarts opened 5 years ago
@roberto-ebizmarts, please provide detailed steps top reproduce this issue.
Did you run composer install
?
Same error here. I cloned this repo in another directory (/var/www/_libs/magento-code-sniffer-M1-extensionQualityProgram/) and tried to run it manually:
phpcs --standard=/var/www/_libs/magento-code-sniffer-M1-extensionQualityProgram/MEQP1/ /private/var/www/pagseguro-exemplo/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php
I use the same approach to other Magento Sniffing validation tools in ECG and Magento repos, but for this project, didn't work.
Update: same error happen when installing via composer, and also when updating phpcs from 3.4.0 to 3.4.2. It seems to be something else.
Quick (and stupid fix): Copy MEQP folder inside MEQP1 folder...
Fatal error: Trait 'MEQP\Utils\Helper' not found in ~/.composer/vendor/magento-ecg/coding-standard/MEQP1/Sniffs/Classes/ResourceModelSniff.php on line 22.
Occurs when I run: phpcs --standard=MEQP1 /path-to-magento