This is the interface dynamic parameter out type extensions implement for functions.
To register it in the configuration file use the phpstan.functionParameterOutTypeExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.functionParameterOutTypeExtension
Methods | ||
---|---|---|
public
|
isFunctionSupported(FunctionReflection $functionReflection, ParameterReflection $parameter): bool
|
# |
public
|
getParameterOutTypeFromFunctionCall(
FunctionReflection $functionReflection,
FuncCall $funcCall,
ParameterReflection $parameter,
Scope $scope,
): ?Type
|
# |