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