Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
User avatar
Uwe367
Posts: 1206
Joined: Sat 15. Sep 2007, 07:19
Location: Koblenz

Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?

Post by Uwe367 »

Hallo allerseits,
Ich habe heute bei einer Installation, die nun etwa 2 Jahre läuft (phpwcms 1.9.0-beta.8 (2017/09/14, r549), folgende Warning unter PHP 7.3 erhalten:
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in include/inc_front/content/cnt23.article.inc.php on line 1470
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in include/inc_front/content/cnt23.article.inc.php on line 1473

Nachdem ich ein wenig nach dieser Meldung recherchierte und in den enstsprechenden Zeilen continue durch break ersetzte, sind die Warnings weg und die Seite läuft ganz normal. Aber ist das so ok mit dieser Lösung oder kann es da anderweitig zu Problemen kommen?
Post Reply