(PHP 8 >= 8.1.0)
ReflectionFunctionAbstract::getTentativeReturnType — Returns the tentative return type associated with the function
Returns the tentative return type associated with the function.
У цієї функції немає параметрів.
   Returns a ReflectionType object if a tentative return type is
   specified, null otherwise.
  
Приклад #1 ReflectionFunctionAbstract::getTentativeReturnType() example
<?php
$method = new ReflectionMethod(\ArrayAccess::class, 'offsetGet');
var_dump($method->getTentativeReturnType());Поданий вище приклад виведе щось схоже на:
object(ReflectionNamedType)#2 (0) {
}
