mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
notice
appears when expression unexpectedly ends
This commit is contained in:
parent
07ff960324
commit
493fcce6e0
@ -523,7 +523,7 @@ class Tokenizer
|
||||
*/
|
||||
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();
|
||||
}
|
||||
return $this;
|
||||
|
Loading…
Reference in New Issue
Block a user