-
Notifications
You must be signed in to change notification settings - Fork 56
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
Slevomat ReturnTypeHintSpacing: remove default spacesCountBeforeColon configuration #201
base: 8.2.x
Are you sure you want to change the base?
Slevomat ReturnTypeHintSpacing: remove default spacesCountBeforeColon configuration #201
Conversation
…CountBeforeColon configuration that is the default
@@ -368,11 +368,7 @@ | |||
<!-- Require one space between typehint and variable, require no space between nullability sign and typehint --> | |||
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/> | |||
<!-- Require space around colon in return types --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is no longer valid. The space is required only after the colon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, the included psr12 sniffs enforce this. the comment seems redundant and can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎 on this one: if slevomat/coding-standard
decide to change it in future versions, this will generate maintenance for us. Explicit vs. implicit here
I can promise I'll not change it :D |
The base branch was changed.
This was changed to zero here: #163
But this is the default so no need for the override: https://github.com/slevomat/coding-standard/blob/c4e287879af90a2f56b1b516deaba707858c9a24/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSpacingSniff.php#L35