diff --git a/packages/framework/src/Console/Commands/MakePublicationCommand.php b/packages/framework/src/Console/Commands/MakePublicationCommand.php index 299173b730e..70e8a931eff 100644 --- a/packages/framework/src/Console/Commands/MakePublicationCommand.php +++ b/packages/framework/src/Console/Commands/MakePublicationCommand.php @@ -145,17 +145,8 @@ protected function captureTextFieldInput(PublicationFieldType $field): string protected function captureArrayFieldInput(PublicationFieldType $field): array { - $lines = []; $this->output->writeln($field->name.' (end with an empty line)'); - do { - $line = Str::replace("\n", '', fgets(STDIN)); - if ($line === '') { - break; - } - $lines[] = trim($line); - } while (true); - - return $lines; + return InputStreamHandler::call(); } protected function captureImageFieldInput(PublicationFieldType $field, PublicationType $pubType): string