Statement on glibc/iconv Vulnerability

ReflectionFunctionAbstract::hasTentativeReturnType

(PHP 8 >= 8.1.0)

ReflectionFunctionAbstract::hasTentativeReturnTypeReturns whether the function has a tentative return type

Beschreibung

public ReflectionFunctionAbstract::hasTentativeReturnType(): bool

Returns whether the function has a tentative return type.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns true if the function has a tentative return type, otherwise false.

Beispiele

Beispiel #1 ReflectionFunctionAbstract::hasTentativeReturnType() example

<?php

$method
= new ReflectionMethod(\ArrayAccess::class, 'offsetGet');
var_dump($method->hasTentativeReturnType());

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top