From ace6b1a16beca69b0d47b1c3a967c0619f12e863 Mon Sep 17 00:00:00 2001 From: Luke Lancaster Date: Wed, 10 Apr 2019 10:36:22 -0500 Subject: [PATCH] Uses `break` in switch statements for php 7.3 upgrade --- src/Handlebars/Tokenizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handlebars/Tokenizer.php b/src/Handlebars/Tokenizer.php index d0e0ea0..a90504c 100644 --- a/src/Handlebars/Tokenizer.php +++ b/src/Handlebars/Tokenizer.php @@ -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