ReflectionFunction
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
( excerpt from http://php.net/manual/en/class.reflectionfunction.php )
The ReflectionFunction class reports information about a function.
Interface Synopsis
class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector {...}
Public Methods
-
::export($name, $return = false)
( excerpt from http://php.net/manual/en/reflectionfunction.export.php ) -
->__construct($name_or_closure)
( excerpt from http://php.net/manual/en/reflectionfunction.construct.php ) -
->__toString(): string
( excerpt from http://php.net/manual/en/reflectionfunction.tostring.php ) -
->getAttributeClass<T as HH\FunctionAttribute>(classname<T> $c): ?T -
->getClosureThis(): mixed
Returns this pointer bound to closure -
->getName(): string
(excerpt from http://php.net/manual/en/reflectionfunctionabstract.getname.php ) -
->invoke(...$args)
( excerpt from http://php.net/manual/en/reflectionfunction.invoke.php ) -
->invokeArgs(varray $args)
( excerpt from http://php.net/manual/en/reflectionfunction.invokeargs.php ) -
->isDisabled(): bool
( excerpt from http://php.net/manual/en/reflectionfunction.isdisabled.php )