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