Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 11, 2023

Description

Recreation of upstream PR squizlabs/PHP_CodeSniffer#3872:

No functional changes.

These sniffs only concerns themselves with control structures which take parentheses, so listening for T_ELSE is unnecessary as the sniffs will never do anything for that token (they each bow out on no 'parenthesis_opener'/'parenthesis_closer' found).

Suggested changelog entry

N/A

Types of changes

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

No functional changes.

These sniffs only concerns themselves with control structures which take parentheses, so listening for `T_ELSE` is unnecessary as the sniffs will never do anything for that token (they each bow out on no 'parenthesis_opener'/'parenthesis_closer' found).
@jrfnl jrfnl force-pushed the feature/psr2-controlstructurespacing-remove-t_else branch from ee9df63 to f4ac654 Compare December 4, 2023 15:59
@jrfnl jrfnl merged commit 54fef11 into master Dec 4, 2023
@jrfnl jrfnl deleted the feature/psr2-controlstructurespacing-remove-t_else branch December 4, 2023 16:08
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