/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/iterator_058.phpt
24 строки
467 B
Máté Kocsis
Declare tentative return types in ext/spl - part 3 (#7239)
16 июл 2021, 13:09
Не верифицирован
16 июл 2021, 13:09
b3e0888
Код
Авторство
О чём код?
--TEST-- SPL: Iterator::__construct(void) --CREDITS-- Sebastian Schürmann --FILE-- <?php class myIterator implements Iterator { function current(): mixed {} function next(): void {} function key(): mixed {} function valid(): bool {} function rewind(): void {} } try { $it = new myIterator(); } catch (InvalidArgumentException $e) { echo 'InvalidArgumentException thrown'; } echo 'no Exception thrown'; ?> --EXPECT-- no Exception thrown