-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PSR12 / There must be 1 space after the property type #3729
Comments
I'd like to clarify something please… What would be the point to say that there MUST be a space (so from one to many) between type and name, whereas it's not possible to have 0 space, as it would be syntactically invalid? Do we expect PSR to explicitly redefine the PHP rules? If not, my feeling would be that the intention was to require one single space after the property type. |
syntactically this is still correct/working... (PHP is impressive inconsistent in this case)
thats why i see a difference between "must be a space" and "must be one space" |
and PSR makes a difference between 'one space' and 'a space'
in this example is explicit one space defined |
WOW! 😱 Sorry for this, I should have tested it before answering… |
Describe the bug
Code sample
Custom ruleset
To reproduce
Expected behavior
no error
Reason
The PSR12 does not disalow multiple spaces after the declaration:
it just says there must be a space, not one space
The text was updated successfully, but these errors were encountered: