Skip to content

Commit 6d4cf25

Browse files
authored
fix: allow constructor to take nullable colors
1 parent 813410b commit 6d4cf25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TableFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TableFormatter
2626
*
2727
* @param Colors|null $colors
2828
*/
29-
public function __construct(Colors $colors = null)
29+
public function __construct(?Colors $colors = null)
3030
{
3131
// try to get terminal width
3232
$width = $this->getTerminalWidth();

0 commit comments

Comments
 (0)