From df4770b32a2aff09d7a2153d6cfc997ec2f91fb0 Mon Sep 17 00:00:00 2001 From: Alessandro Galli Date: Thu, 8 Sep 2016 20:14:49 +0200 Subject: [PATCH] fix test --- tests/Functional/Capsule/CollectionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Functional/Capsule/CollectionTest.php b/tests/Functional/Capsule/CollectionTest.php index 5f3f83b..05410e6 100644 --- a/tests/Functional/Capsule/CollectionTest.php +++ b/tests/Functional/Capsule/CollectionTest.php @@ -171,6 +171,7 @@ public function test_aggregate() $results = []; foreach ($result as $res) { + $res = (array)$res; $results[] = ['group' => $res['_id'], 'value' => $res['value']]; }