PHP 8.0.0 Beta 4 available for testing

The ReflectionType class

(PHP 7)

Introducere

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

Sinopsisul clasei

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

Cuprins

add a note add a note

User Contributed Notes 3 notes

up
26
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
1
roland at mxchange dot org
6 months ago
I guess it is <?php ReflectionNamedType::getName(); ?> ?
up
0
benjamin dot morel at gmail dot com
1 day ago
Known subclasses:

- ReflectionNamedType
- ReflectionUnionType
To Top