Skip to content

Commit 7c27286

Browse files
committed
fix(import): iterator was already closed error
1 parent b41fe99 commit 7c27286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/ImportCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
9898
)->create();
9999

100100
$inputSource = new JsonImportSourceFactory($input->getArgument('directory'), $config);
101-
$tables = $inputSource->listTables();
101+
$tables = iterator_to_array($inputSource->listTables());
102102

103103
foreach ($tables as $table) {
104104
$importer->cleanTable($table);

0 commit comments

Comments
 (0)