Skip to content

Commit

Permalink
fix: array_merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeta committed Feb 2, 2021
1 parent b251f68 commit e315c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/LaraPnnCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public function handle()
}

$eligibleModelsLength = count($eligibleModels);
$eligibleModelsColumnsLength = count(call_user_func_array('array_merge', $eligibleModelsColumns));

$eligibleModelsColumnsLength = count($eligibleModelsColumns) ? count(call_user_func_array('array_merge', $eligibleModelsColumns)) : 0;

$this->line("\n <options=bold,reverse;fg=green>{$this->description} | Stats for {$this->model->getTable()} table: </> \n");
$this->line("<options=bold>Eligible row:</> {$eligibleModelsLength}");
Expand Down

0 comments on commit e315c3a

Please sign in to comment.