handle no input

This commit is contained in:
Pekka Laiho 2020-06-04 18:27:47 +07:00
parent 91eba046bc
commit 291a7d6521

View File

@ -5,6 +5,10 @@ class Reader
{
public function read(array $tokens)
{
if (empty($tokens)) {
return null;
}
$index = 0;
return $this->readForm($tokens, $index);
}