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

PSR2/ClassDeclaration: bug fix - space before class keyword is not checked correctly #307

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 27, 2024

Description

  • If there would be a newline + indentation between a modifier keyword and the "class" keyword, the space between them would not be flagged as incorrect (should be one space).
  • Along the same lines, if there would be a comment between the modifier keyword and the "class" keyword, the space between them would not be checked, let alone flagged.

Fixed now.

Includes additional tests.

Suggested changelog entry

  • PSR2.Classes.ClassDeclaration : incorrect space between the last class modifier and the class keyword was not always flagged.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@jrfnl jrfnl added this to the 3.9.0 milestone Jan 27, 2024
…ecked correctly

* If there would be a newline + indentation between a modifier keyword and the "class" keyword, the space between them would not be flagged as incorrect (should be one space).
* Along the same lines, if there would be a comment between the modifier keyword and the "class" keyword, the space between them would not be checked, let alone flagged.

Fixed now.

Includes additional tests.
@jrfnl jrfnl force-pushed the feature/psr2-classdeclaration-bugfix branch from 2744426 to f548efa Compare January 31, 2024 19:32
@jrfnl
Copy link
Member Author

jrfnl commented Jan 31, 2024

Rebased without changes. Merging once the build passes.

@jrfnl jrfnl merged commit 4869898 into master Jan 31, 2024
44 checks passed
@jrfnl jrfnl deleted the feature/psr2-classdeclaration-bugfix branch January 31, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant