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();