mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 13:24:46 +00:00
handle no input
This commit is contained in:
parent
91eba046bc
commit
291a7d6521
@ -5,6 +5,10 @@ class Reader
|
||||
{
|
||||
public function read(array $tokens)
|
||||
{
|
||||
if (empty($tokens)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$index = 0;
|
||||
return $this->readForm($tokens, $index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user