Closed opauloh closed 8 years ago
@madeiraph
It should be this in your config I believe
"phpcs_additional_args": {
"--standard": "PHPCompatibility",
"--runtime-set" : "testVersion 5.4"
},
hi @benmatselby thanks for your response, i tried this setup, still error:
"phpcs_additional_args": {
"--standard": "PHPCompatibility",
"--runtime-set" : "testVersion 5.4"
},
[Phpcs] /home/user/vendor/bin/phpcs --report=checkstyle --runtime-set=testVersion 5.4 --standard=PHPCompatibility /usr/share/nginx/html/test.php
[Phpcs] /home/user/vendor/bin/phpcs --report=checkstyle --runtime-set=testVersion 5.4 --standard=PHPCompatibility /usr/share/nginx/html/test.php
[Phpcs] cwd: /home/user
reloading Packages/User/achievement.sublime-settings
[Phpcs] ERROR: option "--runtime-set=testVersion 5.4" not known.
@madeiraph Hi there, think this may need a development change actually. I'm not actively working on this at the moment as I have switched to phpStorm, so cannot guarantee a fix any time soon.
@benmatselby i understand, i will try to find the fix for this, and if i get success i share here.
@madeiraph This should be fixed in v6.6.2 (just pushed up)
Hi, i need to run phpcs with the standard PHPCompatibility, and whenever i try to execute phpcs with the additional arg --runtime-set testVersion 5.4, he give me the following error:
if i copy the code and paste the shell that he tries to execute at terminal, he give me the correct output:
this is my sublime phpcs.sublime-settings
anyone facing this issue?