Skip to content

Commit 221a23b

Browse files
More return type fixes (bis)
1 parent a6e72a3 commit 221a23b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ public function testBindFailureShouldThrowAnException()
147147

148148
public function testQueryForDn()
149149
{
150-
$collection = new \ArrayIterator([new Entry('')]);
150+
$collection = new class([new Entry('')]) extends \ArrayObject implements CollectionInterface {
151+
public function toArray(): array
152+
{
153+
return $this->getArrayCopy();
154+
}
155+
};
151156

152157
$query = $this->createMock(QueryInterface::class);
153158
$query->expects($this->once())->method('execute')->willReturn($collection);

0 commit comments

Comments
 (0)