Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionProperty::__toStringReflectionType::allowsNull>
^ReflectionLast updated: Mon, 26 Oct 2026

The ReflectionType class

(PHP 7, PHP 8)

Introduction

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:

Class synopsis

abstract class ReflectionType implements Stringable {
/* Methods */
public function allowsNull(): bool
public function __toString(): string
}

Changelog

Version Description
8.0.0 ReflectionType has become abstract and ReflectionType::isBuiltin() has been moved to ReflectionNamedType::isBuiltin().

Table of Contents


<ReflectionProperty::__toStringReflectionType::allowsNull>
^ReflectionLast updated: Mon, 26 Oct 2026