Skip to content

Commit

Permalink
Merge pull request #5481 from Laravel-Backpack/fix-access-to-variable
Browse files Browse the repository at this point in the history
initialize the variable as an empty array
  • Loading branch information
pxpm committed Mar 27, 2024
2 parents ce2d2ea + f9a300b commit 3ecaeff
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 3ecaeff

Please sign in to comment.