PHP 8.0.0 Beta 4 available for testing

The ReflectionType class

(PHP 7)

Introduction

The ReflectionType class reports information about a function's return type.

Class synopsis

ReflectionType {
/* Methods */
public allowsNull ( void ) : bool
public isBuiltin ( void ) : bool
public __toString ( void ) : string
}

Table of Contents

add a note add a note

User Contributed Notes 2 notes

up
18
1franck
7 months ago
For those who stumble on notice about ReflectionType::__toString() beeing deprecated, use method ReflectionType::getName() instead which is not yet documented.
up
0
roland at mxchange dot org
6 months ago
I guess it is <?php ReflectionNamedType::getName(); ?> ?
To Top