Skip to content

Commit f9a300b

Browse files
authored
initialize the variable as an empty array
1 parent ce2d2ea commit f9a300b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Library/Database/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
final class Table
66
{
77
private string $name;
8-
private array $columns;
8+
private array $columns = [];
99

1010
public function __construct(string $name, array $columns = [])
1111
{

0 commit comments

Comments
 (0)