Interface PHPStan\Reflection\FunctionReflection

Reflection for a standalone function (not a class method). Represents both built-in PHP functions and user-defined functions. Like methods, functions can have multiple "variants" (overloaded signatures) — particularly common for built-in functions where the return type depends on argument types. Extension developers encounter this interface when implementing DynamicFunctionReturnTypeExtension or FunctionTypeSpecifyingExtension. Functions referenced in Scope::getFunctionCallStack() may be either FunctionReflection or MethodReflection.

Methods