Skip to content

Commit 8988933

Browse files
author
Greg Bowler
committed
fix: convert the assembly iterator to an array before invoking
fixes #651
1 parent ee1558c commit 8988933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)