array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'class.reflectiontype.php', 1 => 'ReflectionType', ), 'up' => array ( 0 => 'book.reflection.php', 1 => 'Reflexão', ), 'prev' => array ( 0 => 'reflectionproperty.tostring.php', 1 => 'ReflectionProperty::__toString', ), 'next' => array ( 0 => 'reflectiontype.allowsnull.php', 1 => 'ReflectionType::allowsNull', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', '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)
The ReflectionType class reports information about a function's parameter/return type or a class's property type. The Reflection extension declares the following subtypes:
Versão | Descrição |
---|---|
8.0.0 | ReflectionType has become abstract and ReflectionType::isBuiltin() has been moved to ReflectionNamedType::isBuiltin(). |