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

View File

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