Skip to content

Commit

Permalink
fix: convert the assembly iterator to an array before invoking
Browse files Browse the repository at this point in the history
fixes #651
  • Loading branch information
g105b committed Jan 3, 2025
1 parent ee1558c commit 8988933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logic/LogicExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(

/** @return Generator<string> filename::function() */
public function invoke(string $name, array $extraArgs = []):Generator {
foreach($this->assembly as $file) {
foreach(iterator_to_array($this->assembly) as $file) {
$nsProject = (string)(new LogicProjectNamespace(
$file,
$this->appNamespace
Expand Down

0 comments on commit 8988933

Please sign in to comment.