Skip to content

Commit c8c37b9

Browse files
author
Carlos Cima
committed
Avoid foreach errors.
1 parent b4697a2 commit c8c37b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Model/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Database
77
/**
88
* @var Table[]
99
*/
10-
private $tables;
10+
private $tables = [];
1111

1212
/**
1313
* @return Table[]

src/Model/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Table
3232
/**
3333
* @var Column[]
3434
*/
35-
private $primaryKeys;
35+
private $primaryKeys = [];
3636

3737
/**
3838
* @var ForeignKey[]

0 commit comments

Comments
 (0)