Skip to content

Commit

Permalink
Avoid foreach errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cima committed Jun 29, 2016
1 parent b4697a2 commit c8c37b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Database
/**
* @var Table[]
*/
private $tables;
private $tables = [];

/**
* @return Table[]
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Table
/**
* @var Column[]
*/
private $primaryKeys;
private $primaryKeys = [];

/**
* @var ForeignKey[]
Expand Down

0 comments on commit c8c37b9

Please sign in to comment.