Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Net/LDAP2/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public function sizeLimitExceeded()
*
* @return Net_LDAP2_Entry|false
*/
public function current()
public function current(): mixed
{
if (count($this->_iteratorCache) == 0) {
$this->next();
Expand All @@ -578,7 +578,7 @@ public function current()
* @see current()
* @return string|false DN of the current entry; false in case no entry is returned by current()
*/
public function key()
public function key(): mixed
{
$entry = $this->current();
return ($entry instanceof Net_LDAP2_Entry)? $entry->dn() :false;
Expand All @@ -593,7 +593,7 @@ public function key()
* @see current()
* @return void
*/
public function next()
public function next(): void
{
// fetch next entry.
// if we have no entrys anymore, we add false (which is
Expand All @@ -616,7 +616,7 @@ public function next()
* @see current()
* @return boolean FALSE if there's nothing more to iterate over
*/
public function valid()
public function valid(): bool
{
return ($this->current() instanceof Net_LDAP2_Entry);
}
Expand All @@ -629,7 +629,7 @@ public function valid()
* @see current()
* @return void
*/
public function rewind()
public function rewind(): void
{
reset($this->_iteratorCache);
}
Expand Down