Switch statement 'continue' should be 'break'

Created on 21 July 2019, over 5 years ago
Updated 19 December 2024, 5 days ago

These cases are not actual bugs (even if it was a mistake, the end results are equivalent here); but PHP 7 tools will generate warnings about them, as the presence of 'continue' in a switch statement often indicates a bug (i.e. when the author believes that it will act on a loop around the switch statement).

plugins/JuiceboxFormatterViewsStyle.inc: "Targeting a 'switch' control structure with a 'continue' statement is strongly discouraged and will throw a warning as of PHP 7.3.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand jweowu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States luke.leber Pennsylvania

    Hi all, given the relatively short remainder of life for Drupal 7, I'm going to close this out, but still assign issue credit where appropriate (hence the 'fixed' status) as it looks like genuine effort was put into this.

    Cheers all.

Production build 0.71.5 2024