Skip to content

Commit

Permalink
initialize the variable as an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm authored Mar 27, 2024
1 parent ce2d2ea commit f9a300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Library/Database/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
final class Table
{
private string $name;
private array $columns;
private array $columns = [];

public function __construct(string $name, array $columns = [])
{
Expand Down

0 comments on commit f9a300b

Please sign in to comment.