PSR12/AnonClassDeclaration: prevent fixer creating parse error#56
Merged
jrfnl merged 1 commit intoDec 5, 2023
Merged
Conversation
jrfnl
force-pushed
the
feature/3790-psr12-anonclassdeclaration-prevent-parse-error
branch
from
November 11, 2023 03:36
8e8bb0b to
172e8b3
Compare
This fix prevents the fixer from removing the opening brace when there is no whitespace between the last character of the name of an interface and the open brace. With this fix in place, all other symptoms reported are also gone as they were a side-effect of the parse error being created. Includes unit test. Fixes 3790
jrfnl
force-pushed
the
feature/3790-psr12-anonclassdeclaration-prevent-parse-error
branch
from
December 5, 2023 00:57
172e8b3 to
884d702
Compare
jrfnl
deleted the
feature/3790-psr12-anonclassdeclaration-prevent-parse-error
branch
December 5, 2023 01:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Recreation of upstream PR squizlabs/PHP_CodeSniffer#3791:
Suggested changelog entry
PSR12/AnonClassDeclaration: prevent fixer creating parse error