mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update Tokenizer.php
`Trying to access array offset on value of type null` Exception fix in php >= 7.4
This commit is contained in:
parent
fc188a5822
commit
7614d7235d
@ -254,6 +254,9 @@ class Tokenizer
|
||||
*/
|
||||
public function current()
|
||||
{
|
||||
if (is_null($this->curr)) {
|
||||
return null;
|
||||
}
|
||||
return $this->curr[1];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user