Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.7 shows this warning #387

Open
wp4nuv opened this issue Apr 14, 2023 · 1 comment
Open

Version 4.7 shows this warning #387

wp4nuv opened this issue Apr 14, 2023 · 1 comment

Comments

@wp4nuv
Copy link

wp4nuv commented Apr 14, 2023

Related to #382
Just created a project with CakePHP 4 and configured PHPStorm to use phpcs and this standard. Issue 382 refers to a warning relating to slevomat/coding-standard. Version 4.7 shows this error in PHPStorm:

phpcs: ERROR: Referenced sniff "SlevomatCodingStandard.Arrays.TrailingArrayComma" does not exist

I haven't begun coding on the project yet, so I'm unaware of any problems running phpcs in PHPStorm, but considering the implications in VSCode stated in 382, this may also impact that tool.

SlevomatCodingStandard installed is version 8.11.1

@wp4nuv
Copy link
Author

wp4nuv commented Apr 14, 2023

Ok, just confirmed that phpcs fails to run, listing that same error.
Interestingly, that sniff exists in the 8.11.1 version. In PHPStorm, I have configured phpcs to use the CakePHP standard.

devilbox@php-7.4.33 in /shared/httpd/api4.blnsoftware $ phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP -p src/
ERROR: Referenced sniff "SlevomatCodingStandard.Arrays.TrailingArrayComma" does not exist

Run "phpcbf --help" for usage information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant