ReflectionFunctionAbstract::hasTentativeReturnType
Returns whether the function has a tentative return type
Description
public bool ReflectionFunctionAbstract::hasTentativeReturnType()
Parameters
This function has no parameters.
Return Values
Returns true
if the function has a tentative return type, otherwise false
.
Examples
Example #1 ReflectionFunctionAbstract::hasTentativeReturnType example
<?php
$method = new ReflectionMethod(\ArrayAccess::class, 'offsetGet');
var_dump($method->hasTentativeReturnType());
The above example will output: