From c8c37b99526ed1fbfda922a4657e6c27ba3209b5 Mon Sep 17 00:00:00 2001 From: Carlos Cima Date: Wed, 29 Jun 2016 11:45:08 -0400 Subject: [PATCH] Avoid foreach errors. --- src/Model/Database.php | 2 +- src/Model/Table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Database.php b/src/Model/Database.php index d148c6c..d9f7175 100644 --- a/src/Model/Database.php +++ b/src/Model/Database.php @@ -7,7 +7,7 @@ class Database /** * @var Table[] */ - private $tables; + private $tables = []; /** * @return Table[] diff --git a/src/Model/Table.php b/src/Model/Table.php index 96a6c40..f1ebbc9 100644 --- a/src/Model/Table.php +++ b/src/Model/Table.php @@ -32,7 +32,7 @@ class Table /** * @var Column[] */ - private $primaryKeys; + private $primaryKeys = []; /** * @var ForeignKey[]