From 7ace82c9f41e9a8b28dee2dc5e4396e3bb3a293a Mon Sep 17 00:00:00 2001 From: Hart Joris Date: Mon, 7 Aug 2023 15:26:20 +0200 Subject: [PATCH] Added a verification to ensure the group tables are not empty --- src/Elgentos/Masquerade/Console/RunCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elgentos/Masquerade/Console/RunCommand.php b/src/Elgentos/Masquerade/Console/RunCommand.php index bb5a03d..9c4bac9 100644 --- a/src/Elgentos/Masquerade/Console/RunCommand.php +++ b/src/Elgentos/Masquerade/Console/RunCommand.php @@ -125,7 +125,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $startTime = new \DateTime(); foreach ($this->config as $groupName => $tables) { - if (!empty($this->group) && !in_array($groupName, $this->group)) { + if ((!empty($this->group) && !in_array($groupName, $this->group)) || empty($tables)) { continue; } foreach ($tables as $tableName => $table) {