mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
273731fb76
We also change `Generator::throw()` to expect a `Throwable` in the first place, and we now throw a TypeError instead of returning `false` from `Exception::getTraceAsString()`.
21 lines
299 B
PHP
21 lines
299 B
PHP
<?php
|
|
|
|
final class Generator implements Iterator
|
|
{
|
|
function rewind(): void {}
|
|
|
|
function valid(): bool {}
|
|
|
|
function current() {}
|
|
|
|
function key() {}
|
|
|
|
function next(): void {}
|
|
|
|
function send($value) {}
|
|
|
|
function throw(Throwable $exception) {}
|
|
|
|
function getReturn() {}
|
|
}
|