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

View File

@@ -192,7 +192,7 @@ class JShrink_Minifier
case "\n":
// if the next line is something that can't stand alone
// preserve the newline
if(strpos('(-+{[@', $this->b) !== false)
if($this->b !== false && strpos('(-+{[@', $this->b) !== false)
{
echo $this->a;
$this->saveString();
@@ -239,7 +239,7 @@ class JShrink_Minifier
if($this->a == '/' && ($this->b == '\'' || $this->b == '"'))
{
$this->saveRegex();
continue;
continue 3;
}
echo $this->a;