Eloquent\Phony\Invocation\InvocableInspector::callbackReturnType PHP Method

callbackReturnType() public method

Get the return type for the supplied callback.
public callbackReturnType ( callable $callback ) : ReflectionTyp\ReflectionType | null
$callback callable The callback.
return ReflectionTyp\ReflectionType | null The return type, or null if no return type is defined.
    public function callbackReturnType($callback)
    {
        if (!$this->isReturnTypeSupported) {
            return null;
            // @codeCoverageIgnore
        }
        return $this->callbackReflector($callback)->getReturnType();
    }