fixes #988 no more warning on PHP 7.3 (only for branch 2.9, branch master will get a new version of jshrink)

This commit is contained in:
plegall
2019-04-08 17:03:43 +02:00
parent 506e711f44
commit 15d8a19880
+2 -2
View File
@@ -192,7 +192,7 @@ class JShrink_Minifier
case "\n": case "\n":
// if the next line is something that can't stand alone // if the next line is something that can't stand alone
// preserve the newline // preserve the newline
if(strpos('(-+{[@', $this->b) !== false) if($this->b !== false && strpos('(-+{[@', $this->b) !== false)
{ {
echo $this->a; echo $this->a;
$this->saveString(); $this->saveString();
@@ -239,7 +239,7 @@ class JShrink_Minifier
if($this->a == '/' && ($this->b == '\'' || $this->b == '"')) if($this->a == '/' && ($this->b == '\'' || $this->b == '"'))
{ {
$this->saveRegex(); $this->saveRegex();
continue; continue 3;
} }
echo $this->a; echo $this->a;