Skip to content

Commit

Permalink
Update tests to support 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
harikt committed Jul 3, 2024
1 parent e71d171 commit 78901e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 78901e9

Please sign in to comment.