Merge pull request #2 from RoundingWellOS/master

Fix PHP 7.3 compatibility
This commit is contained in:
Fedor A. Fetisov 2019-04-17 16:28:34 +03:00 committed by GitHub
commit c416140cd7
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) { } elseif ($this->tagChange(self::T_UNESCAPED.$this->otag, $text, $i) and $this->escaped) {
$this->buffer .= "{{{"; $this->buffer .= "{{{";
$i += 2; $i += 2;
continue; break;
} elseif ($this->tagChange($this->otag, $text, $i) and (!$this->escaped || $prev_slash)) { } elseif ($this->tagChange($this->otag, $text, $i) and (!$this->escaped || $prev_slash)) {
$i--; $i--;
$this->flushBuffer(); $this->flushBuffer();
@ -210,7 +210,7 @@ class Tokenizer
default: default:
if ($this->tagChange(self::T_TRIM . $this->ctag, $text, $i)) { if ($this->tagChange(self::T_TRIM . $this->ctag, $text, $i)) {
$this->trimRight = true; $this->trimRight = true;
continue; break;
} }
if ($this->tagChange($this->ctag, $text, $i)) { if ($this->tagChange($this->ctag, $text, $i)) {
// Sections (Helpers) can accept parameters // Sections (Helpers) can accept parameters