array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'class.reflectiontype.php', 1 => 'ReflectionType', ), 'up' => array ( 0 => 'book.reflection.php', 1 => 'Reflection', ), 'prev' => array ( 0 => 'reflectionproperty.tostring.php', 1 => 'ReflectionProperty::__toString', ), 'next' => array ( 0 => 'reflectiontype.allowsnull.php', 1 => 'ReflectionType::allowsNull', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ru', 'path' => 'reference/reflection/reflectiontype.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.reflectiontype.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7, PHP 8)
Класс ReflectionType сообщает информацию о типе параметра/возвращаемого значения функции или типе свойства класса. Модуль Reflection объявляет следующие подтипы:
Версия | Описание |
---|---|
8.0.0 | ReflectionType стал абстрактным, а метод ReflectionType::isBuiltin() был перемещён в ReflectionNamedType::isBuiltin(). |