Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva authored Feb 24, 2022
1 parent fcf047f commit 6565896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Compiler/HoaCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public function lex(?string $input): Enumerable
throw InvalidSearchStringException::fromLexer($exception->getMessage(), $exception->getArguments()[1]);
}

return LazyCollection::make($generator);
return LazyCollection::make(function() use ($generator) {
yield from $generator;
});
}

public function parse(?string $input): Symbol
Expand Down

0 comments on commit 6565896

Please sign in to comment.