Skip to content

Tokenizer/PHP: goto is a switch case/default terminating statement #916

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

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 1, 2025

Description

goto was not consistently recognized as a switch - case/default terminating statement throughout the code base.

Fixed now.

Includes tests via the SwitchDeclaration sniffs.

Suggested changelog entry

Fixed: goto was not recognized as a terminating statement for a case/default in a switch control structure.

Related issues/external references

Loosely related to #185

Types of changes

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

`goto` was not consistently recognized as a switch - case/default terminating statement throughout the code base.

Fixed now.

Includes tests via the `SwitchDeclaration` sniffs.
@jrfnl jrfnl added this to the 3.12.1 milestone Apr 1, 2025
@jrfnl jrfnl merged commit 4f7ccf3 into master Apr 3, 2025
74 checks passed
@jrfnl jrfnl deleted the feature/tokenizer-php-goto-is-terminating-statement branch April 3, 2025 22:05
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