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
[Question] Encapsed variable + Single quote preference #59
Comments
I havn't tested it for a while, but you should be able to specify the level of error of the "preferQuotes" test.
|
I know that we can change the level but is there a way to create an exception for double quotes? |
I'm sorry, I'm not sure I understand what you want to do. You prefer to use single quotes in the code, ok. So PHPCheckstyle should say nothing when it encounters single quotes. When it encounters double quotes, it should raise an error/warning/info. Can you provide an example of code with the expected result ? Thanks, |
https://nikic.github.io/2012/01/09/Disproving-the-Single-Quotes-Performance-Myth.html |
I think that I will only change the level to info. Thank you for your time guys |
I would like to make sure that single quotes are preferred but allow the use of double quotes for encapsed variables. Is there a way to allow such a configuration?
The text was updated successfully, but these errors were encountered: