Merge pull request #1 from RoundingWellOS/fix/continue_in_switch

Uses `break` in switch statements for php 7.3 upgrade
This commit is contained in:
Luke Lancaster 2019-04-10 10:47:30 -05:00 committed by GitHub
commit 5de8b39d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ class Tokenizer
} elseif ($this->tagChange(self::T_UNESCAPED.$this->otag, $text, $i) and $this->escaped) {
$this->buffer .= "{{{";
$i += 2;
continue;
break;
} elseif ($this->tagChange($this->otag, $text, $i) and (!$this->escaped || $prev_slash)) {
$i--;
$this->flushBuffer();
@ -210,7 +210,7 @@ class Tokenizer
default:
if ($this->tagChange(self::T_TRIM . $this->ctag, $text, $i)) {
$this->trimRight = true;
continue;
break;
}
if ($this->tagChange($this->ctag, $text, $i)) {
// Sections (Helpers) can accept parameters