Skip to content

Commit

Permalink
Convert json data to an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoody committed Feb 1, 2015
1 parent 473a453 commit f5e6ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
composer.lock
vendor
tests/coverage-report
tests/examples
.idea
2 changes: 1 addition & 1 deletion src/DataSets.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function counties($state = 'AR')
*/
protected static function getData($path = null)
{
return json_decode(file_get_contents($path));
return json_decode(file_get_contents($path), true);
}

/**
Expand Down

0 comments on commit f5e6ff7

Please sign in to comment.