Loading CHANGELOG.md +5 −0 Original line number Diff line number Diff line CHANGELOG ========= 7.0.3 (27/08/2024) ------------------ - Fix : signatures des fonctions de UnicaenLdap\Collection 6.0.0 (28/02/2023) ------------------ Loading src/UnicaenLdap/Collection.php +10 −9 Original line number Diff line number Diff line Loading @@ -16,19 +16,19 @@ class Collection implements Iterator, Countable /** * @var AbstractService */ private $service; private AbstractService $service; /** * Liste des identifiants à parcourir * * @var string[] */ private $data; private array $data; /** * @var integer */ private $index = 0; private int $index = 0; /** Loading @@ -50,7 +50,7 @@ class Collection implements Iterator, Countable * * @return int */ public function count() public function count(): int { return count($this->data); } Loading @@ -60,8 +60,9 @@ class Collection implements Iterator, Countable * Implements Iterator * * @return Entity * @throws \UnicaenLdap\Exception */ public function current() public function current(): mixed { $current = $this->data[$this->index]; Loading @@ -74,7 +75,7 @@ class Collection implements Iterator, Countable * * @return int|null */ public function key() public function key(): mixed { return $this->index; } Loading @@ -84,7 +85,7 @@ class Collection implements Iterator, Countable * Implements Iterator * */ public function next() public function next(): void { ++$this->index; } Loading @@ -93,7 +94,7 @@ class Collection implements Iterator, Countable * Rewind the Iterator to the first result item * Implements Iterator */ public function rewind() public function rewind(): void { $this->index = 0; } Loading @@ -105,7 +106,7 @@ class Collection implements Iterator, Countable * * @return bool */ public function valid() public function valid(): bool { return isset($this->data[$this->index]); } Loading Loading
CHANGELOG.md +5 −0 Original line number Diff line number Diff line CHANGELOG ========= 7.0.3 (27/08/2024) ------------------ - Fix : signatures des fonctions de UnicaenLdap\Collection 6.0.0 (28/02/2023) ------------------ Loading
src/UnicaenLdap/Collection.php +10 −9 Original line number Diff line number Diff line Loading @@ -16,19 +16,19 @@ class Collection implements Iterator, Countable /** * @var AbstractService */ private $service; private AbstractService $service; /** * Liste des identifiants à parcourir * * @var string[] */ private $data; private array $data; /** * @var integer */ private $index = 0; private int $index = 0; /** Loading @@ -50,7 +50,7 @@ class Collection implements Iterator, Countable * * @return int */ public function count() public function count(): int { return count($this->data); } Loading @@ -60,8 +60,9 @@ class Collection implements Iterator, Countable * Implements Iterator * * @return Entity * @throws \UnicaenLdap\Exception */ public function current() public function current(): mixed { $current = $this->data[$this->index]; Loading @@ -74,7 +75,7 @@ class Collection implements Iterator, Countable * * @return int|null */ public function key() public function key(): mixed { return $this->index; } Loading @@ -84,7 +85,7 @@ class Collection implements Iterator, Countable * Implements Iterator * */ public function next() public function next(): void { ++$this->index; } Loading @@ -93,7 +94,7 @@ class Collection implements Iterator, Countable * Rewind the Iterator to the first result item * Implements Iterator */ public function rewind() public function rewind(): void { $this->index = 0; } Loading @@ -105,7 +106,7 @@ class Collection implements Iterator, Countable * * @return bool */ public function valid() public function valid(): bool { return isset($this->data[$this->index]); } Loading