Skip to content

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