/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/ReflectionClass_toString_006.phpt
32 строки
406 B
Máté Kocsis
Typed class constants (#10444)
16 апр 2023, 23:20
Не верифицирован
16 апр 2023, 23:20
414f71a
Код
Авторство
О чём код?
--TEST-- Using ReflectionClass::__toString() with typed class constants --FILE-- <?php class Foo { const ?int CONST1 = 1; } echo new ReflectionClass(Foo::class); ?> --EXPECTF-- Class [ <user> class Foo ] { @@ %s 3-5 - Constants [1] { Constant [ public ?int CONST1 ] { 1 } } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } }