mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Mitigate continue; warning when run on PHP 7.3+ (fixes #9826)
PHP 7.3+ issues a warning when continue; is used inside a switch statement, as it has the same behaviour as break; HTMLBBCodeParser.php had such a continue; statement that is intended to skip to the the next record of the foreach that the switch sits inside. continue 2; needs to be used here.
This commit is contained in:
parent
c877954eef
commit
e372e52e93
@ -502,7 +502,8 @@ class SSHTMLBBCodeParser
|
||||
{
|
||||
if (trim($tag['text']) == '') {
|
||||
//just an empty indentation or newline without value?
|
||||
continue;
|
||||
//skip this iteration of the foreach loop
|
||||
continue 2;
|
||||
}
|
||||
$newTagArray[] = $child;
|
||||
$openTags[] = $child['tag'];
|
||||
|
Loading…
Reference in New Issue
Block a user