php-ds: add missed return types for the getIterator() methods

This commit is contained in:
Viktor Pikaev 2024-01-16 10:25:43 +01:00 committed by Ivan Fedorov
parent da7113dbdd
commit 8ea3bf4472
1 changed files with 18 additions and 0 deletions

View File

@ -563,6 +563,9 @@ namespace Ds;
*/
public function get(int $index) {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**
@ -871,6 +874,9 @@ namespace Ds;
*/
public function copy(): Collection {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**
@ -1342,6 +1348,9 @@ namespace Ds;
*/
public function get($key, $default = null) {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**
@ -2019,6 +2028,9 @@ namespace Ds;
*/
public function get(int $index) {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**
@ -2364,6 +2376,9 @@ namespace Ds;
*/
public function copy(): Stack {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**
@ -2659,6 +2674,9 @@ namespace Ds;
*/
public function copy() {}
/**
* @return Traversable<TValue>
*/
public function getIterator(): Traversable {}
/**