`notice` appears when expression unexpectedly ends

This commit is contained in:
Ivan Shalganov 2020-07-06 11:31:08 +03:00
parent 07ff960324
commit 493fcce6e0
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ class Tokenizer
*/ */
public function skipIf($token1 /*, $token2, ...*/) public function skipIf($token1 /*, $token2, ...*/)
{ {
if ($this->_valid(func_get_args(), $this->curr[0])) { if ($this->curr && $this->_valid(func_get_args(), $this->curr[0])) {
$this->next(); $this->next();
} }
return $this; return $this;