Skip to content

Commit

Permalink
fixed PHP Warning when calling array_map with \Illuminate\Support\Col…
Browse files Browse the repository at this point in the history
…lection
  • Loading branch information
michael-mader committed Aug 30, 2016
1 parent a3bc706 commit 0f3725a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Phpmig/Adapter/Illuminate/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function fetchAll()
$all = $this->adapter
->table($this->tableName)
->orderBy('version')
->get();
->get()->toArray();

return array_map(function($v) use($fetchMode) {

Expand Down Expand Up @@ -117,4 +117,4 @@ public function createSchema()
$table->string('version');
});
}
}
}

0 comments on commit 0f3725a

Please sign in to comment.