Skip to content

Commit

Permalink
Fix issue with integer keys as column headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Nov 1, 2022
1 parent 751a1c5 commit d7186ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public static function table(iterable $data, bool $ascii = false, bool $compact
$output .= $vsep . ' ';
}

$output .= $strPadVisual($headers[$i], $columnWidths[$cellKeys[$i]]) . ' ';
$output .= $strPadVisual((string) $headers[$i], $columnWidths[$cellKeys[$i]]) . ' ';
}

if ($noInnerBorder && $noOuterBorder) {
Expand Down

0 comments on commit d7186ad

Please sign in to comment.