ProxyHelper
in package
since Symfony 6.2, use VarExporter's ProxyHelper instead
Tags
Table of Contents
Methods
- getTypeHint() : string|null
- getTypeHintForType() : string|null
Methods
getTypeHint()
public
static getTypeHint(ReflectionFunctionAbstract $r[, ReflectionParameter|null $p = null ][, bool $noBuiltin = false ]) : string|null
Parameters
- $r : ReflectionFunctionAbstract
- $p : ReflectionParameter|null = null
- $noBuiltin : bool = false
Return values
string|null —The FQCN or builtin name of the type hint, or null when the type hint references an invalid self|parent context
getTypeHintForType()
private
static getTypeHintForType(ReflectionType $type, ReflectionFunctionAbstract $r, bool $noBuiltin) : string|null
Parameters
- $type : ReflectionType
- $r : ReflectionFunctionAbstract
- $noBuiltin : bool