/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/classes/ctor_in_interface_02.phpt
34 строки
530 B
Nikita Popov
Reindent phpt files
04 фев 2020, 00:52
04 фев 2020, 00:52
f8d7958
Код
Авторство
О чём код?
--TEST-- ZE2 A class constructor must keep the signature of all interfaces --FILE-- <?php interface constr1 { function __construct(); } interface constr2 extends constr1 { } class implem12 implements constr2 { function __construct() { } } interface constr3 { function __construct($a); } class implem13 implements constr1, constr3 { function __construct() { } } ?> --EXPECTF-- Fatal error: Declaration of implem13::__construct() must be compatible with constr3::__construct($a) in %s on line %d