Update Tokenizer.php

This commit is contained in:
Maxim Kostjukevich 2020-04-27 10:18:25 +04:00 committed by GitHub
parent 55b84888e8
commit 4dd1e1870c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class Tokenizer
*/
public function current()
{
return $this->curr[1];
return $this->curr ? $this->curr[1] : null;
}
/**