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

abstractclassReflectionTypeimplementsStringable {
publicallowsNull(): bool
}

Changelog

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

Table of Contents

To Top