Compatibility fixes after 791d61f58c

This commit is contained in:
Kirill Smelov 2021-11-17 18:21:17 +03:00
parent d5ef7ed33f
commit 5bd04c49fd
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ interface IteratorAggregate extends Traversable
/**
* Retrieve an external iterator
* @link https://php.net/manual/en/iteratoraggregate.getiterator.php
* @return Traversable<TKey, TValue> An instance of an object implementing <b>Iterator</b> or
* @return Traversable<TKey, TValue>|TValue[] An instance of an object implementing <b>Iterator</b> or
* <b>Traversable</b>
* @throws Exception on failure.
*/

View File

@ -176,7 +176,7 @@ namespace {
/**
* Returns whatever was passed to yield or null if nothing was passed or the generator is already closed.
* @return TYield|null
* @return TYield
*/
public function current(): mixed {}
@ -203,7 +203,7 @@ namespace {
/**
* Throws an exception at the current suspension point in the generator.
* @param Throwable $exception
* @return TYield|null
* @return TYield
*/
public function PS_UNRESERVE_PREFIX_throw(Throwable $exception): mixed {}