From 78901e90ae654b91c73f89aa494b6bdefc07198e Mon Sep 17 00:00:00 2001
From: Hari K T <github@harikt.com>
Date: Wed, 3 Jul 2024 21:58:43 +0530
Subject: [PATCH] Update tests to support 7.x

---
 tests/CollectionTest.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/CollectionTest.php b/tests/CollectionTest.php
index 5d13c6e..41cb460 100644
--- a/tests/CollectionTest.php
+++ b/tests/CollectionTest.php
@@ -101,7 +101,9 @@ public function testObjectsInCollectionAreInIdentityMap()
     public function testToArray()
     {
         $expected = array_map(
-            fn (object $entity): array => (array) $entity,
+            function ($entity): array {
+                return (array) $entity;
+            },
             $this->data
         );
         $actual = $this->collection->toArray();