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/UseDeclaration - refine testcase #334

Conversation

fredden
Copy link
Member

@fredden fredden commented Feb 8, 2024

Description

While this test-case was always intended to be a parse error, it wasn't intended to be that parse error. The initial intention was that this particular case (unfinished group) not be fixable. That was the case when the code was initially written, but a later change enabled the auto-fixer and broke this.

I have opened #333 to track the incorrect fixer changes being applied in the other parse error case.

This is related to #299

Suggested changelog entry

This is probably not worth its own entry in the change-log.

Types of changes

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

PR checklist

  • I have checked there is no other PR open for the same change.
  • I have read the Contribution Guidelines.
  • I grant the project the right to include and distribute the code under the BSD-3-Clause license (and I have the right to grant these rights).
  • I have added tests to cover my changes.
  • I have verified that the code complies with the projects coding standards.

While this test-case was always intended to be a parse error, it wasn't
intended to be _that_ parse error. The initial intention was that this
particular case (unfinished group) not be fixable. That was the case when the
code was initially written, but a later change enabled the auto-fixer and broke
this.

I have opened <PHPCSStandards#333> to
track the incorrect fixer changes being applied in the other parse error case.
Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fredden !

@jrfnl jrfnl added this to the 3.9.0 milestone Feb 8, 2024
@jrfnl jrfnl merged commit 385270b into PHPCSStandards:master Feb 8, 2024
40 checks passed
@fredden fredden deleted the missing-fixed-file/psr2-namespaces/use-declaration branch February 8, 2024 19:37
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.

2 participants