/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug26695.phpt
24 строки
507 B
Tim Düsterhus
Replace `@deprecated` by `#[\Deprecated]` for internal functions / class constants (#14750)
10 июл 2024, 17:47
Не верифицирован
10 июл 2024, 17:47
29f98e7
Код
Авторство
О чём код?
--TEST-- Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints) --FILE-- <?php class Foo { } class Bar { function demo(foo $f) { } } $class = new ReflectionClass('bar'); $methods = $class->getMethods(); $params = $methods[0]->getParameters(); $class = $params[0]->getClass(); var_dump($class->getName()); ?> --EXPECTF-- Deprecated: Method ReflectionParameter::getClass() is deprecated since 8.0, use ReflectionParameter::getType() instead in %s on line %d string(3) "Foo"