This is the interface for dynamically specifying the $this context
for closure parameters in function calls. To register it in the configuration file use the phpstan.functionParameterClosureThisExtension
service tag: ```
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.functionParameterClosureThisExtension
Methods | ||
---|---|---|
public
|
isFunctionSupported(FunctionReflection $functionReflection, ParameterReflection $parameter): bool
|
# |
public
|
getClosureThisTypeFromFunctionCall(
FunctionReflection $functionReflection,
FuncCall $functionCall,
ParameterReflection $parameter,
Scope $scope,
): ?Type
|
# |