From 89889333d185e4e1ce73cab19e9acfb72b83fd3d Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Fri, 3 Jan 2025 15:15:17 +0000 Subject: [PATCH] fix: convert the assembly iterator to an array before invoking fixes #651 --- src/Logic/LogicExecutor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/LogicExecutor.php b/src/Logic/LogicExecutor.php index 27fb3c73..8c4b98f0 100644 --- a/src/Logic/LogicExecutor.php +++ b/src/Logic/LogicExecutor.php @@ -21,7 +21,7 @@ public function __construct( /** @return Generator 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