Skip to content

Commit 3ecaeff

Browse files
authored
Merge pull request #5481 from Laravel-Backpack/fix-access-to-variable
initialize the variable as an empty array
2 parents ce2d2ea + f9a300b commit 3ecaeff

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)