PHP 7.0+ compatibility errors

Created on 8 October 2021, over 2 years ago
Updated 26 September 2023, 9 months 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.69.0 2024