diff --git a/src/Command/CrontabMigrateCommand.php b/src/Command/CrontabMigrateCommand.php index 245f53f..51f707b 100644 --- a/src/Command/CrontabMigrateCommand.php +++ b/src/Command/CrontabMigrateCommand.php @@ -14,7 +14,9 @@ use Hyperf\Command\Command as Base; use Hyperf\Database\Migrations\Migrator; +use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\NullOutput; class CrontabMigrateCommand extends Base @@ -36,7 +38,7 @@ public function __invoke() $migrator = $this->migrator; $migrator->setConnection($connection); $this->migrator - ->setOutput(new NullOutput()) + ->setOutput(new NullOutput(new ArrayInput([]), new ConsoleOutput())) ->run(dirname(__DIR__, 2) . '/Database/Migrations'); }