PHP 7.0+ compatibility errors

Created on 8 October 2021, about 3 years ago
Updated 26 September 2023, about 1 year ago

Problem/Motivation

Code static analysis reports the error ""continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?"

Proposed resolution

Replace "return" by "break"
The patch is attached

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇾Belarus q2_faith

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.

  • 🇦🇺Australia fenstrat Australia

    #2 looks correct.

    Attaching an updated patch that address 2 more PHP 7.0+ issues:

    Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.

  • 🇷🇺Russia skylord

    Hm. Issues you mention are addressed by #3062480

Production build 0.71.5 2024