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()
|
public function current()
|
||||||
{
|
{
|
||||||
|
if (is_null($this->curr)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return $this->curr[1];
|
return $this->curr[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue