Skip to content

Commit 5a22da3

Browse files
Add return types to internal & magic methods when possible
1 parent bbd6772 commit 5a22da3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Adapter/ExtLdap/Collection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public function toArray()
4242
return $this->entries;
4343
}
4444

45+
/**
46+
* @return int
47+
*/
4548
public function count()
4649
{
4750
$con = $this->connection->getResource();
@@ -58,6 +61,9 @@ public function count()
5861
return $count;
5962
}
6063

64+
/**
65+
* @return \Traversable
66+
*/
6167
public function getIterator()
6268
{
6369
if (0 === $this->count()) {
@@ -81,6 +87,9 @@ public function getIterator()
8187
}
8288
}
8389

90+
/**
91+
* @return bool
92+
*/
8493
public function offsetExists($offset)
8594
{
8695
$this->toArray();

Tests/LdapTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public function testLdapEscape()
5555
->expects($this->once())
5656
->method('escape')
5757
->with('foo', 'bar', 'baz')
58-
->willReturn('');
58+
->willReturn('')
5959
;
60+
6061
$this->ldap->escape('foo', 'bar', 'baz');
6162
}
6263

0 commit comments

Comments
 (0)