php-src/Zend/zend_generators.stub.php
Christoph M. Becker 273731fb76 Add Zend class/interface arginfo stubs
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()`.
2019-10-15 16:21:00 +02:00

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() {}
}