I have squizlabs/PHP_CodeSniffer installed globally via Composer on my Windows 10 machine. On my Sublime Text 3, I have SublimeLinter and SublimeLinter-phpcs.
When I open any php file, Sublime return this error:
could not launch [‘M:\vagrant-local\www\website\public_html\wp-content\themes\test\vendor\bin\phpcs’, ‘–report=emacs’, ‘–stdin-path=M:\vagrant-local\www\website\public_html\wp-content\themes\test\config\theme.php’, ‘–standard=PSR2’, ‘-’]
Reason: [WinError 193] %1 is not a valid Win32 application
PATH: …all my envorionment paths…
Removing phpcs.bat and phpcs from theme/vendor/bin folder make Sublime fixed the problem. But I would like to known is there another way to solve this issue.