Skip to content

Commit 7b63332

Browse files
author
Greg Bowler
authored
fix: convert the assembly iterator to an array before invoking (#652)
fixes #651
1 parent ee1558c commit 7b63332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Logic/LogicExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(
2121

2222
/** @return Generator<string> filename::function() */
2323
public function invoke(string $name, array $extraArgs = []):Generator {
24-
foreach($this->assembly as $file) {
24+
foreach(iterator_to_array($this->assembly) as $file) {
2525
$nsProject = (string)(new LogicProjectNamespace(
2626
$file,
2727
$this->appNamespace

0 commit comments

Comments
 (0)