From f5e6ff77c6ecaff9a066c07186d5f45c0b8d7835 Mon Sep 17 00:00:00 2001 From: Josh Moody Date: Sat, 31 Jan 2015 22:52:14 -0600 Subject: [PATCH] Convert json data to an array. --- .gitignore | 1 + src/DataSets.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 457837b..b0eb936 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ composer.lock vendor tests/coverage-report +tests/examples .idea \ No newline at end of file diff --git a/src/DataSets.php b/src/DataSets.php index 0fc96a1..bfea605 100644 --- a/src/DataSets.php +++ b/src/DataSets.php @@ -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); } /**