Skip to content

Commit

Permalink
Fix #11 - Invalid argument supplied for foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianLlanos committed Jan 9, 2017
1 parent 73c6fe5 commit f9ffe4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Coders/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ public function getBlueprint()
*/
public function isPrimaryKey(Fluent $command)
{
foreach ($this->primaryKeys->columns as $column) {
foreach ((array) $this->primaryKeys->columns as $column) {
if (! in_array($column, $command->columns)) {
return false;
}
Expand Down

0 comments on commit f9ffe4f

Please sign in to comment.